certs

package
v0.0.0-...-89d80b5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificate

func CreateCertificate(template x509.Certificate, signerCert *x509.Certificate, signerKey crypto.PrivateKey) (*x509.Certificate, crypto.PrivateKey, error)

func DecodeCertificate

func DecodeCertificate(b []byte) (*x509.Certificate, error)

func DecodeCertificates

func DecodeCertificates(b []byte) ([]*x509.Certificate, error)

func DecodePrivateKey

func DecodePrivateKey(b []byte) (crypto.PrivateKey, error)

func EncodePrivateKey

func EncodePrivateKey(privateKey crypto.PrivateKey) ([]byte, error)

func LoadCertificate

func LoadCertificate(p string) (*x509.Certificate, error)

func LoadCertificatesFromFile

func LoadCertificatesFromFile(p string) ([]*x509.Certificate, error)

func LoadPrivateKey

func LoadPrivateKey(p string) (crypto.PrivateKey, error)

func PEMEncodeCertificate

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

func PEMEncodeCertificates

func PEMEncodeCertificates(certs []*x509.Certificate) ([]byte, error)

func WritePEMCertificate

func WritePEMCertificate(p string, cert *x509.Certificate) error

func WritePrivateKey

func WritePrivateKey(p string, privateKey crypto.PrivateKey) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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