RE: How to get https web site certificate public key

2014-10-30 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Jerry OELoo > Sent: Tuesday, October 28, 2014 04:20 > Now I use i2d_RSAPublicKey() to encode on RSA* from EVP_PKEY which > will show same as [Chrome] > > One more thing, I find use i2d_RSAPublicKey() will be get same public > between openssl A

Re: How to get https web site certificate public key

2014-10-28 Thread Jerry OELoo
Thanks Dave's quick and detail explanation. I use RSA_print_fp to dump RSA in EVP_PKEY. Now I use i2d_RSAPublicKey() to encode on RSA* from EVP_PKEY which will show same as browser. Thanks a lot. One more thing, I find use i2d_RSAPublicKey() will be get same public between openssl API and browser

RE: How to get https web site certificate public key

2014-10-28 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Jerry OELoo > Sent: Tuesday, October 28, 2014 02:03 > I use SSL_get_peer_certificate(), X509_get_pubkey() API to get web > site https certificate public key, when I dump public key, I find > which is not same as I see in browser (In Chrome, clic

How to get https web site certificate public key

2014-10-27 Thread Jerry OELoo
Hi All: I use SSL_get_peer_certificate(), X509_get_pubkey() API to get web site https certificate public key, when I dump public key, I find which is not same as I see in browser (In Chrome, click padlock in URL address bar, -> Connection -> Certificate information -> Certificate->Details -> Publi