Last active
August 20, 2020 08:52
-
-
Save tsaito-cyber/0aa61f5e9a91dd8b4d8e9c524a4232af to your computer and use it in GitHub Desktop.
appstore-sign.sh
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
### [apple store, appstore] | |
# キーと公開鍵認証リクエストを作成 | |
$ openssl req -newkey rsa:2048 -out server.csr -keyout server.pem -days 365 -subj '/[email protected]/CN=YOUR NAME/C=JP' -batch -nodes | |
# キーのインポート | |
$ security import kaigi.pem | |
$ mv ~/Downloads/ios_distribution.cer kaigi.cer | |
$ openssl x509 -in kaigi.cer -inform DER -out kaigi.cer.pub -outform pem | |
$ security import kaigi.cer.pub | |
$ echo openssl pkcs12 -export -in kaigi.cer.pub -inkey kaigi.pem -password pass:$(pwgen -n 12 1) | tee /dev/stderr | sh > kaigi.p12 | |
$ security import kaigi.p12 | |
# キーチェーン > システム > 証明書 > 公開鍵 > 秘密鍵(クリック) > アクセス制御 > この項目の使用を全てのアプリケーションに許可をチェック | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment