Instance Methodswift-certificates 1.8.0X509
makeCertificateExtension
SubjectKeyIdentifier.swift:94- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
func makeCertificateExtension() throws -> Certificate.Extension
func makeCertificateExtension() throws -> Certificate.Extension
s4X50920SubjectKeyIdentifierV24makeCertificateExtensionAA0F0V0G0VyKF
What are these?5INA9
import X509
A library for working with X.509 certificates.
struct SubjectKeyIdentifier
Provides a means of identifying a certificate that contains a particular public key.
struct Certificate
struct Extension
A general-purpose representation of a specific X.509 extension.
init(_ ext: Certificate.Extension) throws
Create a new SubjectKeyIdentifier
object by unwrapping a Extension
.
init(hash publicKey: Certificate.PublicKey)
Construct a SubjectKeyIdentifier
by hashing the given publicKey
with SHA-1 according to RFC 5280 Section 4.2.1.2.
init(keyIdentifier: ArraySlice<UInt8>)
Construct a Subject Key Identifier extension with a specific key identifier.
var debugDescription: String { get }
var description: String { get }
var keyIdentifier: ArraySlice<UInt8>