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:

  1. is there chance me run libsecurity_pkcs12 on ios?
  2. or better: there alternative small footprint pkcs12 library not aware of?
  3. or better: has imported x509 + key ios keychain (yielding secidentityref afterwards) without using pkcs12?


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -