This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |