Quantcast
Viewing latest article 3
Browse Latest Browse All 3

How do I automate exporting a DER encoded certificate for a site?

I'd like to automate the following process with the openssl command:

I've been working along the lines of the following command (here wrapped in python):

local("echo -n | openssl s_client -connect google.com:443 -certform DER | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'> /tmp/google.com.der")

but it doesn't give me what I expect.


Viewing latest article 3
Browse Latest Browse All 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>