Initializerswift-certificates 1.8.0X509
init(_:)
Construct a private key wrapping a P256 private key.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
init(_ p256: P256.Signing.PrivateKey)
Parameters
- p256
The P256 private key to wrap.
Construct a private key wrapping a P256 private key.
init(_ p256: P256.Signing.PrivateKey)
s4X50911CertificateV10PrivateKeyVyAE6Crypto4P256O7SigningOADVcfc
What are these?6XKMZ
The P256 private key to wrap.
import X509
A library for working with X.509 certificates.
struct PrivateKey
A private key that can be used with a certificate.
struct Certificate
enum P256
An elliptic curve that enables NIST P-256 signatures and key agreement.
enum Signing
A mechanism used to create or verify a cryptographic signature using the NIST P-256 elliptic curve digital signature algorithm (ECDSA).
struct PrivateKey
A P-256 private key used to create cryptographic signatures.
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(_ 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(pemDocument: PEMDocument) throws
init(pemEncoded: String) throws
var description: String { get }
var publicKey: PublicKey { get }
Obtain the PublicKey
corresponding to this private key.
func serializeAsPEM() throws -> PEMDocument