serialize(into:withIdentifier:)
CertificateSigningRequest.swift:249- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
func serialize(into coder: inout DER.Serializer, withIdentifier identifier: ASN1Identifier) throws
func serialize(into coder: inout DER.Serializer, withIdentifier identifier: ASN1Identifier) throws
s4X50925CertificateSigningRequestV9serialize4into14withIdentifiery9SwiftASN13DERO10SerializerVz_AG0jH0VtKF
What are these?3ICM3
import X509
A library for working with X.509 certificates.
struct CertificateSigningRequest
A representation of a PKCS#10 Certificate Signing Request (CSR).
enum DER
DER
defines a namespace that is used to store a number of helper methods and types for DER encoding and decoding.
struct Serializer
An object that can serialize ASN.1 bytes.
struct ASN1Identifier
An ASN1Identifier
is a representation of the abstract notion of an ASN.1 identifier.
init(derEncoded rootNode: ASN1Node, withIdentifier identifier: ASN1Identifier) throws
init(version: Version, subject: DistinguishedName, privateKey: Certificate.PrivateKey, attributes: Attributes) throws
Construct a CSR for a specific private key.
init(version: Version, subject: DistinguishedName, privateKey: Certificate.PrivateKey, attributes: Attributes, signatureAlgorithm: Certificate.SignatureAlgorithm) throws
Construct a CSR for a specific private key.
init(version: Version, subject: DistinguishedName, publicKey: Certificate.PublicKey, attributes: Attributes, signatureAlgorithm: Certificate.SignatureAlgorithm, signature: Certificate.Signature) throws
Construct a Certificate Signing Request from constituent parts.
static var defaultIdentifier: ASN1Identifier { get }
static var defaultPEMDiscriminator: String { get }
var attributes: CertificateSigningRequest.Attributes { get }
The bundled attributes for this CSR.
var description: String { get }
var publicKey: Certificate.PublicKey { get }
The public key corresponding to the private key held by the subject of this CSR.
let signature: Certificate.Signature
The signature attached to this CSR.
let signatureAlgorithm: Certificate.SignatureAlgorithm
The signature algorithm corresponding to the signature produced over this CSR.
var subject: DistinguishedName { get }
The subject of this CSR.
var version: CertificateSigningRequest.Version { get }
The version of this CSR.
struct Attribute
A general-purpose representation of a CertificateSigningRequest
attribute.
struct Attributes
A representation of the additional attributes on a certificate signing request.
struct Version
The version of the CSR format.