Instance Methodswift-certificates 1.8.0X509
makeCertificateExtension
SubjectAlternativeName.swift:127- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
func makeCertificateExtension() throws -> Certificate.Extension
func makeCertificateExtension() throws -> Certificate.Extension
s4X50923SubjectAlternativeNamesV24makeCertificateExtensionAA0F0V0G0VyKF
What are these?4JAWZ
import X509
A library for working with X.509 certificates.
struct SubjectAlternativeNames
Allows identities to be bound to the subject of a certificate.
struct Certificate
struct Extension
A general-purpose representation of a specific X.509 extension.
init()
Construct a Subject Alternative Name extension that attests to no names.
init<Names>(_ names: Names) where Names : Sequence, Names.Element == GeneralName
Construct a Subject Alternative Name extension from a sequence of GeneralName
s.
init(_ ext: Certificate.Extension) throws
Create a new SubjectAlternativeNames
object by unwrapping a Extension
.
var debugDescription: String { get }
var description: String { get }
var endIndex: Int { get }
var startIndex: Int { get }
subscript(position: Int) -> GeneralName { get set }
mutating func replaceSubrange<NewElements>(_ subrange: Range<Int>, with newElements: NewElements) where NewElements : Collection, NewElements.Element == GeneralName