Command of the Day

Converting P7B to PEM

by MVP MVP ‎01-31-2015 09:05 AM

ClearPass does not work with .p7b certificate that generates by your domain rootCA, so you need to convert certificate to PEM with a cumbersome process of exporting each certificates, opening them in txt, then copy and paste all certificates in the right order to another text file, save in .pem, then import and getting the frustration of “Private Key File does not match the Certificate”

Using openSSL in your Ubuntu or Debian, it is simple, easy, and works everytime.

 

Root: # openssl pkcs7 -print_certs -in certnew.p7b -out certificate.pem