Skip to content

Initializer

init(certificate:)

Creates an ECDSA.PublicKey instance from a PEM encoded certificate string.
init(certificate pem: String) throws

Parameters

pem

The PEM encoded certificate string.

Return Value

A new ECDSAKey instance with the public key from the certificate.

Discussion

Throws

If there is a problem parsing the certificate or deriving the public key.