|
NAMEsshpk-sign - sign data using an SSH keySYNOPSYSsshpk-sign -i KEYPATH [OPTION...]DESCRIPTIONTakes in arbitrary bytes, and signs them using an SSH private key. The key can be of any type or format supported by the sshpk library, including the standard OpenSSH formats, as well as PEM PKCS#1 and PKCS#8.The signature is printed out in Base64 encoding, unless the --binary or -b option is given. EXAMPLESSigning with default settings:$ printf 'foo' | sshpk-sign -i ~/.ssh/id_ecdsa MEUCIAMdLS/vXrrtWFepwe... Signing in SSH (RFC 4253) format (rather than the default ASN.1): $ printf 'foo' | sshpk-sign -i ~/.ssh/id_ecdsa -t ssh AAAAFGVjZHNhLXNoYTIt... Saving the binary signature to a file: $ printf 'foo' | sshpk-sign -i ~/.ssh/id_ecdsa \ -o signature.bin -b $ cat signature.bin | base64 MEUCIAMdLS/vXrrtWFepwe... OPTIONS
SEE ALSOsshpk-verify(1)BUGSReport bugs at Github ⟨https://github.com/arekinath/node-sshpk/issues⟩
Visit the GSP FreeBSD Man Page Interface. |