質問

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