Modestas Vainius
4a7c1d3e74
Support encrypted openssh private keys ( #50 )
...
Currently ssh-vault does not appear to support encrypted openssh private
keys, i.e. those which type is "OPENSSH PRIVATE KEY". While trying to
view a file encrypted against such a key, user gets the following error:
could not parse private key: ssh: this private key is passphrase protected
This commit fixes the problem by trying to decrypt the key without
password first and then handling missing password error appropriately.
2021-07-11 23:08:01 +02:00
nbari
400852f01c
using crypto/ssh trying to openssh openssh-key-v1
2018-12-14 15:42:59 +01:00
nbari
8dc3de2c25
lint
2017-08-20 19:08:33 +02:00
nbari
37702329bb
* removed extra line break
...
* view can read from stdin
2017-03-03 18:01:47 +01:00
nbari
240107c52c
decrypt/view from stdin allowing 0 files and everything on the fly
...
modified: cmd/ssh-vault/main.go
modified: view.go
2017-03-03 16:58:26 +01:00
nbari
90e5bbc1ad
fixed message when trying to open a vault using incorrect key so that
...
it can print the proper key
2017-03-03 09:42:55 +01:00
Tom Maher
314fa8930f
add keychain wrapper and test for darwin
2016-12-19 19:25:45 -08:00
Tom Maher
e0d2efffa9
add osx keychain fetch
2016-12-19 15:11:31 -08:00
nbari
a78f6fae70
deleted: aes.go
...
modified: close.go
modified: cmd/ssh-vault/main.go
modified: vault.go
modified: vault_test.go
modified: view.go
2016-10-22 14:12:00 +02:00
nbari
210216397a
return more explicit errors
2016-10-21 23:10:32 +02:00
nbari
c83e4cf193
encode method to add line break every 64 chars
2016-10-20 22:39:16 +02:00
nbari
5e5e215966
use strings instead of bytes
2016-10-18 21:13:25 +02:00
nbari
22fb186a42
unified split character to be ;
2016-10-11 13:26:55 +02:00
nbari
44b9723b91
using fingerprint as additionalData in both encrypt/decrypt
2016-10-09 12:09:26 +02:00
nbari
51f796b218
fixed edit
2016-10-07 19:54:19 +02:00
nbari
8dcc7e55aa
view/create prototype working
2016-10-07 17:12:53 +02:00