Skip to content

Instantly share code, notes, and snippets.

@wzul
Forked from jmervine/cert_convert.sh
Created June 24, 2020 08:32
Show Gist options
  • Save wzul/c3a130dc9e229735ec061cf58bcb1411 to your computer and use it in GitHub Desktop.
Save wzul/c3a130dc9e229735ec061cf58bcb1411 to your computer and use it in GitHub Desktop.
openssl: convert cert from p7b to crt (or cer)
openssl pkcs7 -print_certs -in old.p7b -out new.crt
# openssl pkcs7 -print_certs -in old.p7b -out new.cer
@wzul
Copy link
Author

wzul commented Jun 24, 2020

$ openssl pkcs7 -inform der -in a.p7b -out a.cer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment