keychain - creating PKCS12 at runtime on iOS without using openssl -
my ios app handling x509 certificates + keys (der encoded) @ runtime. way able import them keychain use pkcs12 using function: secpkcs12import()
i have been trying hard running using secitemadd()
. used function der encoded certificate , again der encoded key. though call return success, querying keychain afterwards didn't yield secidentityref
.
so ended using openssl pkcs12 implementation. keen on getting rid of dependency on openssl. have been looking around alernative implementations of pkcs12. alternative lib found hosted in apples open source repo:
https://opensource.apple.com/source/security/security-57031.10.10/security/libsecurity_pkcs12/
though os x project has (i suppose) many dependencies other modules of security framework. before start looking deeper
i wondering:
- is there chance me run libsecurity_pkcs12 on ios?
- or better: there alternative small footprint pkcs12 library not aware of?
- or better: has imported x509 + key ios keychain (yielding
secidentityref
afterwards) without using pkcs12?
Comments
Post a Comment