Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CNFromCSR ¶
func CNFromCSR(csr *x509.CertificateRequest) string
CNFromCSR returns the lower-cased Subject Common Name from the CSR, if a short enough CN was provided. If it was too long or appears to be an IP, there will be no CN. If none was provided, the CN will be the first SAN that is short enough, which is done only for backwards compatibility with prior Let's Encrypt behaviour.
func VerifyCSR ¶
func VerifyCSR(ctx context.Context, csr *x509.CertificateRequest, maxNames int, keyPolicy *goodkey.KeyPolicy, pa core.PolicyAuthority) error
VerifyCSR checks the validity of a x509.CertificateRequest. It uses identifier.FromCSR to normalize the DNS names before checking whether we'll issue for them.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.