Generate Base64 encoding of a binary file:
openssl base64 -in certificate.p12 -out certificate.p12.base64
Read or verify a certificate in text or binary (PEM or DER) format:
openssl x509 -inform DER | PEM -in <certificate> -text -noout
Convert a certificate from DER to PEM or vice versa:
openssl rsa -inform PEM|DER -outform DER|PEM -in <source_file> -out <dest_file>
Verify a checksum using openssl (an alternative to md5sum/sha1sum/sha256sum)
openssl dgst -md5 | -sha1 -sha256 <file>
You can even set up a generic SSL server to test the certificate using openssl. Change the port number in the following command if 443 is already in use.
openssl s_server -accept 443 -cert <certificate-name.cer> -key keyfile.pem -state -www
Use it as a client to test tls connections to mail servers.
openssl s_client -starttls smtp -crlf -connect mail.hccanet.org:587
Get certificates from a remote server
openssl s_client -showcerts -connect cgp.hccanet.org:443