User Tools

Site Tools

Please note, that this is an old archived version of this site. Check out the new version at!

Download a Server Certificate

First, load the certificate chain from the server:

openssl s_client -showcerts -connect </dev/null

This will output the whole server certificate chain. Every chertificate ist wrapped between —–BEGIN CERTIFICATE—– and —–END CERTIFICATE—–. The first certificate is the server certificate. So you only need to copy the output from the first —–BEGIN CERTIFICATE—– to the first —–END CERTIFICATE—– to a file. This certificate is in the PEM (text) format. To convert it to the binary DER format see Convert a Certificate.

info/cryptography/openssl/download_server_certificate.txt · Last modified: 2015-02-11 14:42 by andunix