Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
appstore-sign.sh
### [apple store, appstore]
# キーと公開鍵認証リクエストを作成
$ openssl req -newkey rsa:2048 -out server.csr -keyout server.pem -days 365 -subj '/emailAddress=your_mail_address@gmail.com/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
You can’t perform that action at this time.