简体   繁体   English

证书与iOS中的配置文件相关吗?

[英]Is certificate relate with provisioning profile in iOS?

I know a provisioning profile is created to be used with one certificate and, as I understand it, it can only be used with that one (an one specific id). 我知道创建了一个配置文件以与一个证书一起使用,据我所知,它只能与那个证书一起使用(一个特定的ID)。

My question is if the opposite is also true. 我的问题是相反的说法是否也成立。 If I have a certificate, can that certificate only be used with that profile? 如果我有证书,该证书只能与该配置文件一起使用吗? If I create another profile for that certificate, it will be valid? 如果我为该证书创建另一个配置文件,它将有效吗? Do I need to create another certificate? 我需要创建另一个证书吗?

It is a one to many relationship. 这是一对多的关系。 A certificate can have many provisioning profiles associated with it but a single provisioning profile can only be associated with 1 certificate. 一个证书可以具有多个与其关联的配置文件,但是一个配置文件只能与一个证书关联。

So essentially no you will not need to create a new certificate when you create a new provisioning profile. 因此,从本质上讲,当您创建新的配置文件时,您无需创建新的证书。

However you will need to create a new certificate every year as the certificates do expire. 但是,随着证书过期,您将需要每年创建一个新证书。

There are 2 kind of certificate: 有两种证书:

  1. APNS certificate (Dev & Distribution) - Need to create for each app-id/ bundle-id and it is only used to share( sometime .p12 file or .PEM file ) with backend to for push notification APNS证书 (开发和发行)-需要为每个app-id / bundle-id创建,并且仅用于与后端共享( 有时是.p12文件或.PEM文件 )以进行推送通知
  2. Account certificate (Dev & Distribution) - Maximum 2(or either 3, but not more than 3) certificates can be created per apple developer account 帐户证书 (开发和分发)-每个Apple开发人员帐户最多可以创建2个(或3个,但不超过3个)证书

Provisioning profiles associate with app-id/ bundle-id with reference of one of account certificate, if you made some changes in app-id(for example; say enabled push-notification or any other service), then your provisioning-profile gets invalid 配给配置文件参考帐户证书之一与app-id / bundle-id相关联,如果您对app-id进行了一些更改(例如,说启用了推送通知或任何其他服务),则您的配给配置文件将无效

Both certificate and provisioning-profile is needed to sign the iOS app. 签署iOS应用程序既需要证书,又需要配置文件。

So same account certificates will be used with the as many as app you will have in single developer account, but you will be needed different provisioning-profile for each app-id . 因此,同一帐户证书将与单个开发者帐户中的应用程序一起使用,但每个应用程序ID都需要使用不同的配置文件。

The Adhoc Provisioning Profile can include more than one certificate. 临时供应配置文件可以包含多个证书。 Other Provisioning Profiles can include only one certificate 其他供应配置文件只能包含一个证书

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM