# usually we can replace <key ID> with <user ID> # keygen gpg --full-gen-key (choose DSA & Elgamal here) # editing gpg --edit-key <key ID> # key listing gpg -k [ <user ID> or <key ID> ] gpg -K [ <user ID> or <key ID> ] -k: --list-public-keys / --list-keys -k: --list-secret-keys # fingerprint gpg --fingerprint [ <key ID> ] # import and export (backup & restore) gpg --import filename gpg --export <key id> gpg --export-secret-keys <key id> # --armor (-a): ASCII text format gpg -a --export <key id> gpg -a --export-secret-subkeys <key id> gpg --enarmor filename.gpg gpg --dearmor filename.asc # keyserver gpg --keyserver pgp.mit.edu --send-keys <key ID> gpg --keyserver pgp.mit.edu --recv-keys <key ID> gpg --keyserver pgp.mit.edu --search-key <key ID> # encryption and decryption gpg -e filename gpg -r <key ID> -e filename gpg -o filename -d filename.gpg -e: --encrypt -d: --decrypt -o: --output -r: --recipient # signature (in place signature) gpg --sign filename gpg --clearsign filename gpg --verify filename.gpg (saperated key) gpg --detach-sign filename gpg -a --detach-sign filename gpg --verify filename.sig filename # sign-key gpg --sign-key <user id>
Tuesday, March 31, 2015
GnuPG notes
Some notes for GnuPG
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment