tlstools

package
v0.0.0-...-c27735a Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendTLSInfo

func AppendTLSInfo(r *tools.ArrLog, t *tls.ConnectionState, insecure bool)

func GenCertTemplate

func GenCertTemplate(names []string, cn string) (*x509.Certificate, *rsa.PrivateKey, error)

func GetCertPool

func GetCertPool(cacertFiles []string) (*x509.CertPool, error)

func GetSelfSigned

func GetSelfSigned(names []string, cn string) (*tls.Certificate, error)

func Init

func Init(builtin_ca bool)

func PEMDecodeFirst

func PEMDecodeFirst(data []byte) []byte

func PEMEncode

func PEMEncode(data []byte, dataType string) []byte

func PrintCert

func PrintCert(r *tools.ArrLog, cert *x509.Certificate)

func SelfSign

func SelfSign(names []string, cn string) ([]byte, *rsa.PrivateKey, error)

func Sign

func Sign(certTemplate, parent *x509.Certificate, serviceCertPubKey *rsa.PublicKey, caPrivKey *rsa.PrivateKey) ([]byte, error)

func SignWith

func SignWith(names []string, cn, cacertFile, cakeyFile string) (*tls.Certificate, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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