SSL

All posts tagged SSL

Some kinds of software require only one format of SSL certificates. This is the way how you can convert certificates between two popular formats (PEM and DER).

Use ‘openssl’:

openssl x509 -inform DER -in der-cert.crt -outform PEM -out pem-cert.pem

And vice versa:

openssl x509 -inform PEM -in pem-cert.pem -outform DER -out der-cert.crt

 

Testing of SSL connection could be easily done using openssl command. This powerful tool can check both SSL and TLS connection. Certificate chain can be also checked. It is very useful especially for testing newly installed SSL certificate.
Verification could be done using s_client command in openssl. As an example we will use www.sslshopper.com, test.rebex.net and gmail.com. Here is a list of the most common s_client command’s variations:
To test http SSL connection type:

openssl s_client -connect www.sslshopper.com:443 -CApath /etc/ssl/certs/

Continue Reading