Quantcast
Channel: How do I automate exporting a DER encoded certificate for a site? - Server Fault
Viewing all articles
Browse latest Browse all 3

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

$
0
0

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 all articles
Browse latest Browse all 3

Trending Articles



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