Making iOS Certificates

Last Updated on2020-06-18 06:30:00

Updates

Update TimeDescription
2020.4.21Add one-key certificate create entry
2020.3.4Format update, image update
2020.3.2Update "Apple SignIn" related things
2020.3.17Update v3.15 additional capability

Starting from 2020.4, you can go to「 Tuya IoT Platform -> App Platform -> App -> Configure Certificates」and create certificates automaticly, in about 1 minute. If you stil want to create certificates manually, please continue to the following content.

Prepare

  1. Register and join Apple Developer Program. See: Enrollment - Support - Apple Developer
  2. A macOS Computer

Create iOS Certificate

Create App ID

Login Apple Developer, click Certificates, IDs & Profiles .

Making iOS Certificates

Click Identifiers -> + .

Making iOS Certificates

Select App IDs, click Continue .

Making iOS Certificates

Fill in the Description, Select Explicit for Bundle ID, and input your App Bundle ID.

Making iOS Certificates

Select the following options in Capabilities list:

  • Access WiFi Information
  • Associated Domains
  • Push Notifications
  • Sign In with Apple, Enable as a primary App ID (optional)

Making iOS Certificates

Attention: 1. According to the new AppStore review guidline, starting from v3.15, if your App opened the third-party login function (such as wechat/qq/facebook/twitter), "Sign In with Apple" is required. 2. Since v3.15, because of the third-party SDK update, Associated Domainsis required to build the App. 3. If your App include additional service, other capabilities should be opened.

Click Continue , and click Register .

If failed with "An App ID with Identifier 'com.xxx.xxx' is not available. Please enter a different string." , please go back and change a Bundle ID.

Making iOS Certificates

If no error, please proceed to the next step.

Making iOS Certificates

Enable "Sign in with Apple" capability

"Sign in with Apple" is one of the iOS 13 features, users can login to your App using Apple account, without register steps.

About "Sign in with Apple"

According to the new AppStore review guidline, starting from v3.15, if your App opened the third-party login function (such as wechat/qq/facebook/twitter), "Sign In with Apple" is required.

Click Identifiers in left navigation and click your App ID in right side.

Making iOS Certificates

Enable Sign In with Apple option in Capabilities list and save.

Making iOS Certificates

Create a CSR file (.certSigningRequest format)

Open Keychain Access App in macOS, click Keychain Access --> Certificate Assistant --> Request a Certificate From a Certificate Authority... :

Making iOS Certificates

Input your email, name, select Saved to disk , and click Continue .

Making iOS Certificates

Save CertificateSigningRequest.certSigningRequest to local disk, done.

Create App Distribution certificate(.p12 format)

If your account has multiple Apps, you can use the same app distribution certificate. Create multiple distribution certificates will cause some troubles.

Open Certificates, Identifiers & Profile page, select Certificates, click+ .

Making iOS Certificates

Select iOS Distribution (App Store and Ad Hoc), click Continue .

Making iOS Certificates

Click Choose File... , select the csr file created before, click Continue .

Making iOS Certificates

Click Download, download ios_distribution.cer file to local, double click file to import it to the keychain.

Attention: .cer file needs to import to the keychain, then export to .p12 file, please continue the steps.

Making iOS Certificates

Open Keychain Access App, Select My Certificates, and find the certificate you imported. Right click to export.

Making iOS Certificates

Save as "App Distribution Certificate.p12", file format: .p12, then click "Save".

Making iOS Certificates

Set a password for your App Distribution Certificate and not forget it. Click "OK", done.

Create App Push Certificate (.p12 format)

Different to the distribution certificate, if your account has multiple Apps, please create push certificate for every App.

Open Certificates, Identifiers & Profile page, select Certificates, click+ .

Making iOS Certificates

Select Apple Push Notification service SSL (Sandbox & Production) , and continue.

Making iOS Certificates

Choose your App ID (Bundle ID), and continue.

Making iOS Certificates

Click Choose File... , select the csr file created before, click Continue .

Making iOS Certificates

Click Download, download aps.cer file to local, double click file to import it to the keychain.

Attention: .cer file needs to import to the keychain, then export to .p12 file, please continue the steps.

Making iOS Certificates

Open Keychain Access App, Select My Certificates, and find the certificate you imported. Right click to export.

Making iOS Certificates

Save as "App Push Certificate.p12", file format: .p12, then click "Save".

Making iOS Certificates

Set a password for your App Push Certificate and not forget it. Click "OK", done.

Create Profile (.mobileprovison format)

Open Certificates, Identifiers & Profile, select Profiles, then click + button.

Making iOS Certificates

Select App Store and continue.

Making iOS Certificates

Select App ID (Bundle ID) and continue.

Making iOS Certificates

Select the distribution certificate you created before, and continue.

Attention: If there's multiple certificates and you don't know how to choose, please go back to the certificates page, remove the unnecessary certificate and redo this step. If you select the wrong certificate, App build might fail.

Making iOS Certificates

Input a provisioning profile name, then generate.

Making iOS Certificates

Download the profile, done.

Making iOS Certificates

Upload certificates, profile to Tuya IoT Platform.

Open Tuya IoT Platform, click your App.

Making iOS Certificates

Click Set up certificates.

Making iOS Certificates

Upload your App distribution certificates, password, mobileprovision, and save.

Making iOS Certificates

Making iOS Certificates

Attention

  1. The push certificate is valid for 1 year. If it expires, the App push will be invalid.
  2. The developer account needs to renew each year, if not renewed in time, the App will be removed from application market
  3. Starting from April 2020, All App use third-party login function are required to use Sign in with Apple. See New Guidelines for Sign in with Apple
  4. Since v3.15, because of the third-party SDK update, Associated Domainsis required to build the App.
Your advice
Feedback effective questions, more chances to winsandwich development board and other small gifts
0/200
Your advice
Feedback effective questions, more chances to winsandwich development board and other small gifts
0/200