Created
May 27, 2019 06:22
-
-
Save NarendraPunchh/4b136906200ac1fa357d6772048adac3 to your computer and use it in GitHub Desktop.
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
#chmod +x <fileName> | |
#!/bin/bash | |
# Add this file on you desktop folder | |
read -p '[Enter AppName:] ' appName | |
# - Create a folder | |
mkdir "$appName" | |
# - Move to the same folder | |
cd "$appName" | |
# - Tell the user about the Next up coming answers | |
echo "\n\nNext You will be asked some questions\n" | |
echo "Answer" | |
echo "Country:US" | |
echo "Company:Punchh" | |
echo "email:<your email> for every other field hit enter" | |
# - Create a CSR | |
openssl req -new -newkey rsa:2048 -nodes -out "$appName.certSigningRequest" -keyout "$appName.key.pem" | |
open https://developer.apple.com/account | |
read -p "Press Enter to Continue" | |
cp ~/Downloads/aps.cer ~/Desktop/"$appName" | |
openssl x509 -in "$appName.cer" -inform der -outform pem -out "$appName.cert.pem" | |
cat "$appName.cert.pem" "$appName.key.pem" > "$appName.pem" | |
openssl pkcs12 -export -in "$appName.pem" -out $appName.p12 -name "$appName" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment