Skip to content

Instantly share code, notes, and snippets.

@andrewwoz
Last active October 15, 2019 06:02
Show Gist options
  • Save andrewwoz/892a2c50d1a22778a5f75ad2cdf59e39 to your computer and use it in GitHub Desktop.
Save andrewwoz/892a2c50d1a22778a5f75ad2cdf59e39 to your computer and use it in GitHub Desktop.
[Export `.cer` certificate to `.p12` certificate with private key in it] Good for backup and shring with other developers #codesign
$ openssl x509 -in #XXXXX#.cer -inform DER -out mycert.pem -outform PEM
$ openssl pkcs12 -export -inkey my.key -in mycert.pem -out mycert.p12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment