X509Certificate
internal final class X509Certificate
X509Certificate
is a class representing an X.509 certificate.
-
Details of the X.509 certificate, such as subject, issuer, and validity information.
Declaration
Swift
private(set) var details: X509CertificateDetails? { get }
-
Retrieve the certificate in PEM (Privacy-Enhanced Mail) format.
Declaration
Swift
internal var pem: String { get }
-
Initialize an
X509Certificate
instance with an OpenSSLX509
certificate object.Throws
An error if there is an issue initializing the certificate.
Declaration
Swift
internal init?(with cert: OpaquePointer?) throws
Parameters
cert
The OpenSSL
X509
certificate object. -
Deinitialize the
X509Certificate
instance and free the associated OpenSSL certificate object.Declaration
Swift
deinit