Info Sec: Public key certificate Codes
January 8, 2009
Generate Key: gpg –gen-key
View the key: gpg –list-key
Generation a revocation certificate: gpg –output revoke.acc –gen-revoke mykey
Generate public key: gpg –output filename.gpg –export emailad
readable: gpg –armor –output filename.gpg –export emailad
Encrypt a message:
1. create a file
2. gpg –armor –output secretmsg.txt.gpg –encrypt msg.txt
Create a digital signature
gpg –armor –output jason.sig –sign message.txt
To verify: gpg –verify jason.sig
Source: http://gnupg.org/gph/en/manual.html