Initializerswift-certificates 1.8.0X509
init(pemDocument:)
CertificatePrivateKey.swift:296- iOS
- 14+
- macOS
- 11.0+
- tvOS
- 14+
- watchOS
- 7+
init(pemDocument: PEMDocument) throws
init(pemDocument: PEMDocument) throws
s4X50911CertificateV10PrivateKeyV11pemDocumentAE9SwiftASN111PEMDocumentV_tKcfc
What are these?3210T
import X509
A library for working with X.509 certificates.
struct PrivateKey
A private key that can be used with a certificate.
struct Certificate
struct PEMDocument
A PEM document is some data, and a discriminator type that is used to advertise the content.
init(_ rsa: _RSA.Signing.PrivateKey)
Construct a private key wrapping a RSA private key.
init(_ ed25519: Curve25519.Signing.PrivateKey)
Construct a private key wrapping an Ed25519 private key.
init(_ p256: P256.Signing.PrivateKey)
Construct a private key wrapping a P256 private key.
init(_ p384: P384.Signing.PrivateKey)
Construct a private key wrapping a P384 private key.
init(_ p521: P521.Signing.PrivateKey)
Construct a private key wrapping a P521 private key.
init(pemEncoded: String) throws
var description: String { get }
var publicKey: PublicKey { get }
Obtain the PublicKey
corresponding to this private key.
func serializeAsPEM() throws -> PEMDocument