curl-users
Re: Saving the (public) certificate of a website to a file
From: Alex Bligh <alex_at_alex.org.uk>
Date: Thu, 01 Dec 2011 18:00:45 +0000
Date: Thu, 01 Dec 2011 18:00:45 +0000
Ralph,
> openssl s_client -connect server.domain.com:443 > server.pem <
> /dev/null
thanks. For future list readers:
openssl s_client -connect www.google.com:443 </dev/null 2>/dev/null | \
sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'
-- Alex Bligh ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-12-01