Ben Stienstra

Linux, Unix, network, radio and more...

User Tools

Site Tools


retrieve_ssl_certificate_with_openssl

Retrieve SSL certificate with OpenSSL

You can retrieve the SSL CA certificate from for example LDAP or IMAP servers.

echo -n | openssl s_client -connect <server>:636 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ldapserver.pem
retrieve_ssl_certificate_with_openssl.txt · Last modified: 2014/06/10 12:21 by admin