init(unsafePEMRepresentation:)

Construct an RSA private key from a PEM representation.

RSA.swift:174
iOS
13+
macOS
10.15+
Mac Catalyst
13+
tvOS
13+
visionOS
1.0+
watchOS
6+
init(unsafePEMRepresentation pemRepresentation: String) throws

This constructor supports key sizes of 1024 bits or more. Users should validate that key sizes are appropriate for their use-case.