csr

package
v0.0.0-...-94d1468 Latest Latest
Warning

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

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

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 the CSR contains a CN, then it preserves it and guarantees that the SANs also include it. If the CSR does not contain a CN, then it also attempts to promote a SAN to the CN (if any is short enough to fit).

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. Before doing checks it normalizes the CSR which lowers the case of DNS names and subject CN, and hoist a DNS name into the CN if it is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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