mirror of
https://github.com/apple/swift-nio-ssl
synced 2026-11-26 04:57:52 +00:00
Motivation: As requested in #17, it's not uncommon to want to support PKCS#12 bundles. This patch adds support for unpacking PKCS#12 bundles into useful data types for NIOOpenSSL. Modifications: Added new OpenSSLPKCS12Bundle type. Added new fromUnsafePointer(takingOwnership:) static functions to OpenSSLCertificate and OpenSSLPrivateKey. Deprecated fromUnsafePointer(pointer:) on OpenSSLCertificate and OpenSSLPrivateKey. Result: PKCS#12 bundles can be used to distribute certs/keys for SwiftNIO.