certs

package
v0.0.0-...-4b57445 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CreateCA

func CreateCA() error

func LoadCA

func LoadCA() error

func ParseCSR

func ParseCSR(bytesB64 string) (*x509.CertificateRequest, error)

func SignCSR

func SignCSR(csr *x509.CertificateRequest, params CSRParams) ([]byte, error)

func ValidateCSR

func ValidateCSR(csr *x509.CertificateRequest) error

Types

type CSRParams

type CSRParams struct {
	Lifetime   time.Duration
	ClientAuth bool
	ServerAuth bool
}

type FileExistsError

type FileExistsError struct {
	// contains filtered or unexported fields
}

func (*FileExistsError) Error

func (e *FileExistsError) Error() string

Jump to

Keyboard shortcuts

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