Add support for retrieving public key data

I needed the ability to read the public key from a certificate, so I figured I'd share.  I tried to follow your style as closely as possible.

Cheers,
Scott