PkiEnvironmentProtocol
public protocol PkiEnvironmentProtocol : AnyObject, Sendable
The PKI environment used for certificate management during X509 credential acquisition.
-
addIntermediateCert(certPem:Asynchronous) Add a PEM-encoded certificate as an intermediate certificate.
Declaration
Swift
func addIntermediateCert(certPem: String) async throws -
addTrustAnchor(certPem:Asynchronous) Add a PEM-encoded certificate as a trust anchor.
NOTE: currently we only support storing a single trust anchor, calling this method multiple times will overwrite any previously added trust anchor.
Declaration
Swift
func addTrustAnchor(certPem: String) async throws