README: say what -F does; name the unsupported key type
This commit is contained in:
1 parent
2fa11265f6
commit
8731e66501
2 files changed
+5
-4
No files matched your search
@@ -25,7 +25,7 @@ Code: https://git.kropa.tech/hiddenbox/sshcrypt
|
||||
# decrypting needs the matching private key
|
||||
sshcrypt -d -k ~/.ssh/id_ed25519 < notes.txt.asc
|
||||
|
||||
# verify which key a message or a key file belongs to
|
||||
# print a key's fingerprint, the same value ssh-keygen -l shows
|
||||
sshcrypt -F bob.pub
|
||||
sshcrypt -F ~/.ssh/id_ed25519
|
||||
|
||||
@@ -45,7 +45,8 @@ terminal.
|
||||
* Decryption reads PEM/PKCS#8 directly. An OpenSSH-format private key
|
||||
(`-----BEGIN OPENSSH PRIVATE KEY-----`) is converted through `ssh-keygen`,
|
||||
which therefore has to be installed. The conversion happens in a `0600`
|
||||
file under `/dev/shm` (or `$TMPDIR`), and the file is unlinked immediately.
|
||||
file under `/dev/shm` (or `$TMPDIR`), which is unlinked as soon as it has
|
||||
been read.
|
||||
* A passphrase is asked for on `/dev/tty` with echo off, never on stdin (that
|
||||
is the payload). `SSHCRYPT_PASSPHRASE` supplies it non-interactively.
|
||||
|
||||
|
||||
+2
-2
@@ -382,8 +382,8 @@ static int parse_pub_text(const char *text, size_t n, const char *label,
|
||||
}
|
||||
if (!found) {
|
||||
fprintf(stderr,
|
||||
"sshcrypt: %s: no ssh-ed25519 or ssh-rsa public key found\n",
|
||||
label);
|
||||
"sshcrypt: %s: no ssh-ed25519 or ssh-rsa public key found "
|
||||
"(ECDSA keys are not supported)\n", label);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user