-->
-->
 


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



Filed under Information Security |

Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.