MyThinkPond

On Java, Python, Groovy, Grails, Spring, Node.js, Linux, Arduino, ARM, Embedded Devices & Web

Archive for February 15th, 2011

How to extract public key from certificate?

Posted by Venkatt Guhesan on February 15, 2011

How to extract public key from certificate?

Recently I had to extract the public key from a certificate. Each time I do this I end up looking up the man pages for openssl and so I thought I’d blog it for myself and for others to use when needed.

$ openssl x509 -inform pem -in certificate.pem -pubkey -noout > publickey.pem

Enjoy

Posted in Programming, Uncategorized | 3 Comments »

 
Follow

Get every new post delivered to your Inbox.

Join 118 other followers