crypto

package
v0.0.0-...-301dc46 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCsr

func GenerateCsr(fileName string, key *rsa.PrivateKey, cn string, dns []string, c, st, l, o, ou, email string) (block *pem.Block, err error)

func GetKey

func GetKey(fileName string, rsaSize int) (key *rsa.PrivateKey, err error)

func WriteCert

func WriteCert(fileName string, cert []byte) (err error)

Types

type BasicConstraints

type BasicConstraints struct {
	IsCA bool `asn1:"optional"`
}

Jump to

Keyboard shortcuts

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