문제

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