ssl

package
v0.0.0-...-2a34ce9 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoGenCertAndKey

func AutoGenCertAndKey(cert, key string) error

func ExportPrivateKeyToFile

func ExportPrivateKeyToFile(priv any, file string) error

func ExportPrivateKeyToMemory

func ExportPrivateKeyToMemory(priv any) []byte

func ExportPublicKeyToFile

func ExportPublicKeyToFile(priv any, file string) error

func ExportPublicKeyToMemory

func ExportPublicKeyToMemory(priv any) []byte

func GenerateCertificateAndPrivateKey

func GenerateCertificateAndPrivateKey() (cert []byte, key []byte, err error)

func GeneratePrivateKey

func GeneratePrivateKey(keyType string, bitSize int) (crypto.Signer, error)

func GenerateSSHKeyPairs

func GenerateSSHKeyPairs(keyType string)

Types

type CertTemplate

type CertTemplate struct {
	CommonName string
	SAN        []string
}

Jump to

Keyboard shortcuts

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