Package acmeutils provides miscellaneous ACME-related utility functions.
Calculates the base64 thumbprint of a public or private key. Returns an error if the key is of an unknown type.
func CreateTLSSNICertificate(hostname string) (certDER byte, privateKey crypto.PrivateKey, err error)
Creates a self-signed certificate and matching private key suitable for responding to a TLS-SNI challenge. hostname should be a hostname returned by TLSSNIHostname.
Calculates a key authorization which is then hashed and base64 encoded as is required for the DNS challenge.
Calculates a key authorization using the given account public or private key and the token to prefix.
Load a PEM CSR from a stream and return it in DER form.
Load one or more certificates from a sequence of PEM-encoded certificates.
Load a PEM private key from a stream.
Parse a DER private key. The key can be RSA or ECDSA. PKCS8 containers are supported.
Normalizes the hostname given. If the hostname is not valid, returns "" and an error.
Writes one or more DER-formatted certificates in PEM format.
Write a private key in PEM form.
Determines the hostname which must appear in a TLS-SNI challenge certificate.
Returns true iff the given string is a valid hostname.