x509

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePemChain

func CreatePemChain(intermedateCAs []*x509.Certificate, cert []byte) ([]byte, error)

CreatePemChain creates chain of PEM certificates.

func ParseAndCheckCertificateRequest added in v2.6.0

func ParseAndCheckCertificateRequest(csr []byte) (*x509.CertificateRequest, error)

func ParseCertificates

func ParseCertificates(cert *tls.Certificate) ([]*x509.Certificate, error)

ParseCertificates parses the CA chain certificates from the DER data.

func ParsePemCertificates

func ParsePemCertificates(pemBlock []byte) ([]*x509.Certificate, error)

ParsePemCertificates parses x509 certificates from PEM format

func ParsePemEcdsaPrivateKey

func ParsePemEcdsaPrivateKey(pemBlock []byte) (*ecdsa.PrivateKey, error)

ParsePemEcdsaPrivateKey parses private key from PEM format

func ReadPemCertificates

func ReadPemCertificates(path string) ([]*x509.Certificate, error)

ReadPemCertificates reads certificates from file in PEM format

func ReadPemEcdsaPrivateKey

func ReadPemEcdsaPrivateKey(path string) (*ecdsa.PrivateKey, error)

ReadPemEcdsaPrivateKey loads private key from file in PEM format

func ValidateCRLDistributionPoints added in v2.6.0

func ValidateCRLDistributionPoints(crlDistributionPoints []string) error

ValidateCRLDistributionPoints validates a slice of CRL distribution point URLs. It ensures each URL is properly formatted and returns an error if any URL is invalid. Returns nil if all URLs are valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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