November
18
Linux: Split a .p7b cert file
The p7b file contains the main domain cer, issuer server cert, and the cert for the server that requested the new cert.
openssl pkcs7 -inform DER -print_certs -in | awk ‘split_after==1{n++;split_after=0} /—–END CERTIFICATE—–/ {split_after=1} {print > “cert” n “.pem”}’