How to use publickey from x509 certificate?

Tanja Wittke tawi at gruft.de
Fri Jul 9 10:14:27 EST 2004


Hello,

On Thu, Jul 08, 2004 at 10:19:42PM +1000, Damien Miller wrote:
> The public key is easy to extract:
> 
> $ openssl x509 -pubkey -noout -in newcert.pem
> -----BEGIN PUBLIC KEY-----
> MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCiax2Tn3aXOVOqSw5EP+Hc+Euy
> hyfm5XxYFFhCI8KOw9UcUZ5uaZ4u+hca8DlM6vrP4GnU1f8RQK77D/uLRrwGb+5k
> X0In4/sbSipOG3mxnPN9LC5gS06t1JSbOwhWbGECtWwbYCz0XF/HsFf5gP06Sexa
> aYMN/isaJQjBSXBECQIDAQAB
> -----END PUBLIC KEY-----

Yes, but that's not what I meant. A ssh RSA public key looks like

ssh-rsa <key blob> optional comment

But I think this key blob isn't the complete key (modulus,exponent) 
extracted from the certificate. Maybe just the modulus? Or is there 
something else I don't see about the ssh RSA public key structure?

Thank you,

tawi




More information about the openssh-unix-dev mailing list