makecert

package
v0.0.0-...-10e4d99 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CA

type CA struct {
	Certificate *x509.Certificate
	CertPEM     []byte
	Key         *rsa.PrivateKey
	KeyPEM      []byte
	Pool        *x509.CertPool
}

func MakeCA

func MakeCA(orgName string, bits int, expireDays int) (*CA, error)

func (*CA) MakeCert

func (ca *CA) MakeCert(orgName string, bits int, expireDays int, ipAddresses []net.IP, dnsNames []string) (*Cert, error)

type Cert

type Cert struct {
	Certificate *x509.Certificate
	CertPEM     []byte
	Key         *rsa.PrivateKey
	KeyPEM      []byte
	TLSCert     tls.Certificate
}

Jump to

Keyboard shortcuts

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