# Functions
AssertCertificateValid asserts that the certificate was signed by using the issuerCerts for the domain.
AssertKeyBelongsToCertificate asserts that the key belongs to the certificate.
CreateOpenSSLPrivateKey creates private key files using OpenSSL.
CreateOpenSSLSelfSignedCertificate creates a self-signed certificate using OpenSSL.
CreateSelfSignedCertificate uses pk to create a self-signed x509 certificate.
DetermineKeyType inspects the passed key and returns the appropriate KeyType.
KeyMust panics err != nil.
NewPrivateKey creates a new private key for the specified key type.
ParseCertificate reads an x509 certificate.
ReadCertificate reads an x509 certificate from the passed reader.
ReadCertificateFromFile reads an x509 certificate from the passed file.
ReadPrivateKey reads an private key from r using either ReadECDSAPrivateKey or ReadRSAPrivateKey.
ReadPrivateKeyFromFile reads a private key of type kt from the file at the specified path.
WriteCertificate writes cert to w.
WriteCertificateForTesting creates and writes a self-signed certificate for use during unit tests.
WriteCertificateToFile writes the passed certificate to the file specified by path.
WritePrivateKey writes a private key to a file.
WritePrivateKeyForTesting generates a private key of type kt and writes it to keyFile.
WritePrivateKeyToFile writes the private key into the file given by path.
# Constants
EC256 represents an ECDSA key using an elliptic curve implementing P-256.
EC384 represents an ECDSA key using an elliptic curve implementing P-384.
RSA2048 represents an RSA key with a size of 2048 bits.
RSA4096 represents an RSA key with a size of 4096 bits.
RSA8192 represents an RSA key with a size of 8192 bits.
# Type aliases
KeyType represents the types of cryptographic keys supported by acmeproxy.