description
Certificate.swift:305- iOS
- 13+
- macOS
- 10.15+
- Mac Catalyst
- 13+
- tvOS
- 13+
- visionOS
- 1.0+
- watchOS
- 6+
var description: String { get }var description: String { get }import X509A library for working with X.509 certificates.
struct Certificate@frozen struct StringA Unicode string value that is a collection of characters.
init(derEncoded rootNode: ASN1Node, withIdentifier identifier: ASN1Identifier) throws init(version: Certificate.Version, serialNumber: Certificate.SerialNumber, publicKey: Certificate.PublicKey, notValidBefore: Date, notValidAfter: Date, issuer: DistinguishedName, subject: DistinguishedName, extensions: Certificate.Extensions, issuerPrivateKey: Certificate.PrivateKey) throws Construct a certificate from constituent parts, signed by an issuer key.
init(version: Certificate.Version, serialNumber: Certificate.SerialNumber, publicKey: Certificate.PublicKey, notValidBefore: Date, notValidAfter: Date, issuer: DistinguishedName, subject: DistinguishedName, signatureAlgorithm: Certificate.SignatureAlgorithm, extensions: Certificate.Extensions, issuerPrivateKey: Certificate.PrivateKey) throws Construct a certificate from constituent parts, signed by an issuer key.
static var defaultIdentifier: ASN1Identifier { get }static var defaultPEMDiscriminator: String { get }var extensions: Certificate.Extensions { get }The extensions on this certificate.
var issuer: DistinguishedName { get }The DistinguishedName of the issuer of this certificate.
var notValidAfter: Date { get }The date after which this certificate is not valid.
var notValidBefore: Date { get }The date before which this certificate is not valid.
var publicKey: Certificate.PublicKey { get }The public key associated with this certificate.
var serialNumber: Certificate.SerialNumber { get }The serial number of this certificate.
let signature: Certificate.SignatureThe signature attached to this certificate.
let signatureAlgorithm: Certificate.SignatureAlgorithmThe signature algorithm used to produce signature.
var subject: DistinguishedName { get }The DistinguishedName of the subject of this certificate.
let tbsCertificateBytes: ArraySlice<UInt8>The bytes of the TBSCertificate structure.
var version: Certificate.Version { get }The X.509 version of this certificate.
static func == (lhs: Certificate, rhs: Certificate) -> Bool func hash(into hasher: inout Hasher) func serialize(into coder: inout DER.Serializer, withIdentifier identifier: ASN1Identifier) throws struct ExtensionA general-purpose representation of a specific X.509 extension.
struct ExtensionsA representation of a collection of X.509 extensions.
struct PrivateKeyA private key that can be used with a certificate.
struct PublicKeyA public key that can be used with a certificate.
struct SerialNumberA number that uniquely identifies a certificate issued by a specific certificate authority.
struct SignatureAn abstract representation of the cryptographic signature on a certificate.
struct SignatureAlgorithmA representation of a kind of signature algorithm.
struct VersionThe X.509 certificate version.