编程知识 cdmana.com

Windows / Linux generates IOS certificate and p12 file

Operation steps

  • Generate csr file ( adopt OpenSSL command )
  • Generate mobileprovision file ( adopt Apple Developer background )
  • Generate cer file ( adopt Apple Developer background )
  • Generate P12 file ( adopt OpenSSL command )

Generate csr file

#  be used  Windows  perhaps  Linux  Under the  openssl  command , Please install it yourself. .
openssl genrsa -out ios.key 2048
openssl req -new -sha256 -key ios.key -out ios.csr

Generate mobileprovision file

Generate cer file

Generate P12 file

#  You need to use the  ios.key  file , as well as  Apple  Generated  ios_distribution.cer  and  ios_development.cer  file .
openssl x509 -in ios_distribution.cer -inform DER -outform PEM -out ios_distribution.pem
openssl pkcs12 -export -inkey ios.key -in ios_distribution.pem -out ios_distribution.p12

openssl x509 -in ios_development.cer -inform DER -outform PEM -out ios_development.pem
openssl pkcs12 -export -inkey ios.key -in ios_development.pem -out ios_development.p12

版权声明
本文为[Wave chaser]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201224172417489j.html

Scroll to Top