Hi list,
I need to know how to calculate the fingerprint for public/private RSA/DSA keys. (4
possibilities).
Right now, for both public and private keys, I get the same fingerprint (which I think
is wrong). I
think I'm missing some fields needed for private keys, which ones? i.e., Will the
code below only
work for public DSA/RSA keys?
case DSA:
blob->put_cstring("ssh-dss");
blob->put_bignum2(pKey->pkey.dsa->p);
blob->put_bignum2(pKey->pkey.dsa->q);
blob->put_bignum2(pKey->pkey.dsa->g);
blob->put_bignum2(pKey->pkey.dsa->pub_key);
case RSA:
blob->put_cstring("ssh-rsa");
blob->put_bignum2(pKey->pkey.rsa->e);
blob->put_bignum2(pKey->pkey.rsa->n);
The result is then the MD5 digest on the blob...
Thanks for your help!
Mike Gagnon
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]