Reputation: 65
I'm making an IoT client on iOS, and I'm having trouble finding the following methods that exist on Android:
AWSIotKeystoreHelper.saveCertificateAndPrivateKey();
keystore = AWSIotKeystoreHelper.getIotKeystore();
I have a Certificate and Private key in pem format, and I need to generate a keystore (keychain on iOS)
Are there any similar methods in the iOS SDK?
Upvotes: 2
Views: 354
Reputation: 1441
You can use AWSIoTKeyChain in the AWS IoT SDK for iOS. You can add a certificate to the Keychain using the addCertificate
method as described in addCertificate. After adding the certificate, you can get it through getIdentityRef
based on the tag as described in getIdentityRef.
Upvotes: 1