Is this page helpful?
YesNoLast Updated on : 2022-01-25 03:59:41download
This topic describes how to generate certificates for iOS during the required settings to launch your OEM app on the Tuya IoT Platform. You can choose between two methods to generate the certificates: Auto Generate Certificates and Manually Create and Upload Certificates.
Log in to the Tuya IoT Platform.
In the left-side navigation pane, choose App > OEM App > Required Setting, select the app to be launched, and then click the Certificate for iOS tab.
Select the Auto Generate Certificates option.
In the Auto Generate Certificates section, set Apple ID and other fields to automatically generate the distribution certificate and push certificate within one minute or more.
Log in to the Apple Developer platform and select Certificates, Identifiers & Profiles.
Go to the Identifiers page and click +.
Select the App IDs option and click Continue.
In the Description field, enter the description of your app, such as the app name. Set Bundle ID to Explicit and enter the bundle ID of your app.
In the Capabilities section, select the following options:
Click Continue, confirm the settings, and then click Register.
If the error message An App ID with Identifier ‘com.xxx.xxx’ is not available. Please enter a different string. is returned, the bundle ID has been used. Then, click Back and change the bundle ID.
If no error message is returned and the App ID is displayed on the Identifiers list, the App ID is created.
The Sign in with Apple feature is new to iOS 13. This enables login to your app with an Apple account and no registration is required. For more information, see Sign in with Apple.
Starting from v3.15, if your app supports login with accounts of third-party platforms, such as Facebook, WeChat, and Tencent QQ, the Sign in with Apple feature must be enabled for your app. Otherwise, the app might fail the Apple App Store review.
Go to the Identifiers page and click the App ID of your app.
In the Capabilities list, select Sign In with Apple and save the setting.
Open the Keychain Access application on macOS, and on the menu bar, choose Keychain Access > Certificate Assistant > Request a Certificate From a Certificate Authority.
On the Certificate Assistant page, set User Email Address and Common Name, select Saved to disk, and then click Continue.
Save CertificateSigningRequest.certSigningRequest to a local directory.
If multiple applications are associated with your account, you can use the same distribution certificate for all these applications. No more distribution certificates are required.
Choose Certificates, Identifiers & Profile > Certificates and click +.
Selec iOS Distribution (App Store and Ad Hoc) and click Continue.
If this option is not available and the system indicates that the number of certificates has exceeded the upper limit, return to the previous page and delete the unnecessary certificates. The deletion does not affect the normal use of the launched apps. The certificates are only required when you build and launch apps.
Click Choose File… to select the newly generated CSR file and click Continue.
Click Download to download the ios_distribution.cer file to a local directory, double-click the file, and then import it to the keychain.
The .cer file must be imported to the keychain before it can be exported as a .p12 file. Continue with the follow-up steps.
Open the Keychain Access application, choose Category > My Certificates, and then find the newly imported certificate. Right-click the certificate and select Export.
Save the certificate as App Distribution Certificate.p12, select the file format Personal Information Exchange (.p12), and then click Save.
Create a password for the distribution certificate, note it down, and then click OK.
Different from the distribution certificate, if multiple applications are associated with your account, a push certificate must be created for each application.
Choose Certificates, Identifiers & Profile > Certificates and click +.
In the Services section, select Apple Push Notification service SSL (Sandbox & Production) and click Continue.
Select the bundle ID of the app from the App ID drop-down list and click Continue.
Click Choose File… to select the newly generated CSR file and click Continue.
Click Download to download the aps.cer
file to the local directory, and double-click the file to import it to the keychain.
The .cer
file must be imported to the keychain before it can be exported as a .p12
file. Continue with the follow-up steps.
Open the Keychain Access application, choose Category > My Certificates, and then find the newly imported certificate. Right-click the certificate and select Export.
Save the certificate as App Push Certificate.p12, select the file format Personal Information Exchange (.p12), and then click Save.
Create a password for the push certificate, note it down, and then click OK.
Choose Certificates, Identifiers & Profile > Certificates and click +.
In the Distribution section, select App Store and click Continue.
Select the bundle ID of the app from the App ID drop-down list and click Continue.
Select the newly created distribution certificate and click Continue.
If multiple certificates appear on the page, they can be distinguished by expiration time. Each certificate is valid for one year. If the certificates cannot be distinguished, we recommend that you return to the list of certificates, delete the unnecessary certificates, and then redo this step. The unmatched certificate might cause the app building to be failed.
Enter your app name in the Provisioning Profile Name field and click Generate.
Click Download to download the configuration file.
Log in to the Tuya IoT Platform. In the left-side navigation pane, choose App > OEM App > Required Setting, select the app to be launched, click Certificate for iOS, and then select Manually Create and Upload Certificate to upload certificates and configuration file.
In the Certificate for iOS section, upload the configuration file and distribution certificate, enter the certificate password, and then click Save.
In the iOS Push section, upload the push certificate, enter the certificate password, and then click Save.
Is this page helpful?
YesNoIs this page helpful?
YesNo