csr

package
v0.0.0-...-242d746 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MPL-2.0 Imports: 8 Imported by: 40

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NamesFromCSR

func NamesFromCSR(csr *x509.CertificateRequest) names

NamesFromCSR deduplicates and lower-cases the Subject Common Name and Subject Alternative Names from the CSR. If a CN was provided, it will be used if it is short enough, otherwise there will be no CN. If no CN 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. The resulting SANs will always include the original CN, if any.

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 NamesFromCSR 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