Pregunta

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.

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top