Question

is it possible to import a certificate (p12 or pfx file) programmatically from bundle to the Keychain? I would like to use those certificates in Safari and in my application as well.

Thanks.

Était-ce utile?

La solution

Yes, it's possible to import the individual cryptographic objects (keys, passwords, certificates and identities) from a p12 or pfx file into the key chain. If you perform this from your app, the imported objects in the key chain are however only "visible" in the application which imported it.

Since your question is too broad to suggest a crisp answer, here are two links which may help:

Apple documentation: Certificate, Key, and Trust Services Tasks for iOS"

Apple Tech-Note: Making Certificates and Keys Available To Your App

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top