Blog Archives

Extracting x509 certificates from a p7m file

A client emailed me a new TLS certificate for their server as a p7m file. Normally I’d get this from the CA as a PEM encoded x509 certificate. Fortunately openssl can easily convert this openssl pkcs7 -inform DER -in certificate.p7m

Tagged with: ,
Posted in linux, openssl