Skip to content

Instantly share code, notes, and snippets.

@themisir
Created January 26, 2020 06:43
Show Gist options
  • Select an option

  • Save themisir/556a2c80d46ed924accebdd65feff66f to your computer and use it in GitHub Desktop.

Select an option

Save themisir/556a2c80d46ed924accebdd65feff66f to your computer and use it in GitHub Desktop.
Generates apple signing certificate using OpenSSL
openssl genrsa -out app.key 2048
openssl req -new -key app.key -out aps.csr
echo Go to https://developer.apple.com/account/resources/certificates/list and generate certificate
echo Download distribution.cer and copy it to working directory.
pause
openssl x509 -in distribution.cer -inform DER -out aps.pem -outform PEM
openssl pkcs12 -export -out distribution.p12 -inkey app.key -in aps.pem
rm aps.pem
echo Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment