csr

package
v0.20251007.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2025 License: MPL-2.0 Imports: 10 Imported by: 40

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL