Вопрос

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.

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top