util

package module
v0.0.0-...-2a27e50 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCSR

func NewCSR(conf *CSR) ([]byte, error)

func NewCert

func NewCert(conf *Cert) (*x509.Certificate, error)

Types

type CSR

type CSR struct {
	PrivateKey *rsa.PrivateKey
	SAN        string
}

type Cert

type Cert struct {
	CACert          x509.Certificate
	CAKey           crypto.Signer
	ClientPublicKey crypto.PublicKey
	CSR             []byte
	KeyUsages       []x509.ExtKeyUsage
}

Jump to

Keyboard shortcuts

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