Hi,
Could anyone please tell me how to get each certificate (like "begin
... end") in the cert chain by using "peercertchain =
conn.get_peer_cert_chain()"? I use PyOpenssl package. The command line
like openssl s_client -showcerts -connect :443 2>/dev/null can print
out what I need, but I
Hi Vladimir,
Thanks for your reply!
What I need is .PEM format. Could you please provide an example about
how to use OpenSSL.crypto.dump_certificate(*type*, *cert*)?
Cheers,
Kayne.
On Wed, Jul 1, 2015 at 4:12 PM, Vladimir Didenko wrote:
> 2015-07-01 17:03 GMT+03:00 Kai
c)
Verify return code: 0 (ok)
Cheers,
Kayne.
On Wed, Jul 1, 2015 at 4:29 PM, Kai Lu wrote:
> Hi Vladimir,
>
> Thanks for your reply!
>
> What I need is .PEM format. Could you please provide an example about
> how to use OpenSSL.crypto.dump_certificate(*typ
E_PEM,cert)
+++
Cheers,
Kayne.
On Wed, Jul 1, 2015 at 4:34 PM, Kai Lu wrote:
> Hi Vladimir,
>
> The following outputs are what I want:
>
> openssl s_client -showcerts -connect www.google.com:443 2>/dev/null
>
> CONNECTED(0003)
>
> ---
>
> Certificate
Hi Vladimir,
Sorry. I made a mistake. I forgot to print
"OpenSSL.crypto.dump_certificate(OpenSSL.crypto.FILETYPE_PEM,cert)".
Now, it is doing what I want. Many thanks for your help!!!
Cheers,
Kayne.
On Wed, Jul 1, 2015 at 4:45 PM, Kai Lu wrote:
> Hi Vladimir,
>
>