certs

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

README

certs

X.509 certificate generation and management code.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCACert

func GenerateCACert(commonName string) ([]byte, []byte, error)

func GenerateChildCert

func GenerateChildCert(commonName string, isClient bool, caCert *x509.Certificate, caKey *rsa.PrivateKey) ([]byte, []byte, error)

func RandomSubject

func RandomSubject(commonName string) *pkix.Name

func RsaKeySize

func RsaKeySize() int

func SaveToPEMFile

func SaveToPEMFile(filename string, pemData []byte) error

SaveToPEMFile save to PEM file

Types

This section is empty.

Jump to

Keyboard shortcuts

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