x509

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 8 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 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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