如何在不使用Mac创建IPA的情况下创建证书,密钥,.pem和.p12文件? [英] how to create certificates, keys, .pem and .p12 file without using mac to create an ipa?

查看:162
本文介绍了如何在不使用Mac创建IPA的情况下创建证书,密钥,.pem和.p12文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个混合移动应用程序,该应用程序即将完成,并且正在测试阶段.

I'm building a hybrid mobile application which is almost completed and working on testing phase.

我的应用程序在android设备上运行良好,但我需要在IOS设备上测试我的应用程序.我有一个Linux系统,已经在上面进行了所有开发.要创建IPA,我需要使用x代码,但是我没有Mac书.

My app is working fine on android devices but i need to test my app on IOS device. I have a Linux system on which i have done all the development. To create IPA i required x code but i don't have a Mac book.

我用谷歌搜索了如何在线创建IPA,并找到了在 build.phonegap.com <上创建IPA和APK的解决方案,但仅创建APK.对于IPA,它需要一些IPA密钥,证书,.pem和.p12文件.

I googled that how to create IPA online and i got the solution to create IPA and APK on build.phonegap.com but it creates APK only. For IPA it required Some IPA key, certificates, .pem and .p12 file.

有人可以建议如何在没有x代码的情况下创建所有这些证书吗?

Can anybody suggest how to create all these certificates without x code?

推荐答案

如果您要生成用于创建IPA的证书,则可以使用该工具.

This thing will work if you want to generate certificates for creating IPA.

使用命令行窗口:

  1. cd C:\ OpenSSL-Win32 \ bin(或安装SSL的路径)

如果您是Linux用户,请使用sudo su打开终端并从步骤2开始

if you are a linux user then open terminal with sudo su and start from step 2

  1. openssl genrsa -out ios_distribution.key 2048
  2. openssl req-新-key ios_distribution.key -out CertificateSigningRequest.certSigningRequest -subj/emailAddress = YOUEMAILADDRESS,CN =您的姓名,C = COUNTRYCODE
  3. 转到 https://developer.apple.com/ios /manage/certificates/team/distribute.action218 并登录.转到iOS下的证书".
  4. 在左侧的证书"菜单下,单击全部",然后再单击"+"按钮:添加
  5. 选择开发"iOS App Development"或生产"App Store and Ad Hoc"证书.注意:您将需要经历两次该过程才能开发应用程序并进行生产.
  6. 从同一页面下载"Wordwide开发人员关系证书颁发机构"(AppleWWDRCA.cer)文件
  7. 单击继续",直到进入生成证书"屏幕.上载您先前创建的.certSigningRequest文件,然后单击生成.下载生成的ios_development.cer文件.
  8. 通过单击左侧菜单"Provisioning Profiles"下的"All",然后单击"+"符号(又名:添加)来创建Provisioning Profile.
  9. 同样,您将需要同时创建开发版本和发行版(App Store).
  10. 使用新的.cer文件(ios_development.cer)为应用创建配置文件
  11. 下载.mobileprovision文件
  12. 在命令提示符下:openssl x509 -in ios_distribution.cer -inform DER -out ios_distribution.pem -outform PEM
  13. openssl pkcs12 -export -inkey ios_distribution.key -in ios_distribution.pem -out ios_distribution.p12 -passout pass:PASSWORD
  14. .key,.pem和.p12文件将生成
  1. openssl genrsa -out ios_distribution.key 2048
  2. openssl req -new -key ios_distribution.key -out CertificateSigningRequest.certSigningRequest -subj /emailAddress=YOUEMAILADDRESS, CN=YOUR NAME, C=COUNTRYCODE
  3. Go to https://developer.apple.com/ios/manage/certificates/team/distribute.action218 and sign in. Go to "certificates" under iOS.
  4. Under the Certificates menu on the left, click "All", and then the "+" button aka: Add
  5. Pick either a Development "iOS App Development" or a Production "App Store and Ad Hoc" certificate. Note: You will need to go through the process twice to have a development and a production version of the app.
  6. Download the "Wordwide Developer Relations Certificate Authority" (AppleWWDRCA.cer) file from the same page
  7. Click Continue until you get to the "Generate your certificate" screen. Upload the .certSigningRequest file you created earlier and click generate. Download the generated ios_development.cer file.
  8. Create a Provisioning Profile by clicking on "All" under "Provisioning Profiles" on the left menu, and then clicking the "+" symbol, aka: add.
  9. Again, you will need to create both Development and a Distribution (App Store) versions.
  10. Create the Provisioning Profile for the App using the new .cer file (ios_development.cer)
  11. Download the .mobileprovision file
  12. In Command Prompt: openssl x509 -in ios_distribution.cer -inform DER -out ios_distribution.pem -outform PEM
  13. openssl pkcs12 -export -inkey ios_distribution.key -in ios_distribution.pem -out ios_distribution.p12 -passout pass:PASSWORD
  14. .key, .pem, and .p12 files will be generated

这篇关于如何在不使用Mac创建IPA的情况下创建证书,密钥,.pem和.p12文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆