# sign stdin # # outputs signature to stdout ssh-keygen -Y sign \ -n \ # namespace to constrain the signature to -f # path to the private key to sign stdin with # sign files # # generates .sig .sig .sig ssh-keygen -Y sign \ -n \ # namespace to constrain the signature to -f \ # path to the private key to sign the files with # list of files to sign # check signature # # in stdin (use cat, echo or just write + CTRL-D) # # note that although this is called "check-novalidate" it still checks the signature # the "validate" part refers to advanced usage to validate on a list of allowed signers, # revocation lists, etc. ssh-keygen -Y check-novalidate \ -n \ # namespace the signature was generated in -f \ # path to the public key to validate the signature with -s # path to the .sig signature file