cert

package
v2.20.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCA

func MakeCA(subject string) ([]byte, error)

func MakeCertFromCSR

func MakeCertFromCSR(domain string) ([]byte, error)

Types

type Folder

type Folder struct {
	Crt     []byte `json:"crt"`
	Key     []byte `json:"key"`
	Csr     []byte `json:"csr"`
	CrtFile string `json:"crt_file"`
	CsrFile string `json:"csr_file"`
	KeyFile string `json:"key_file"`
}

func AutoFolder

func AutoFolder(domain string) (*Folder, error)

func (*Folder) GetCertPool

func (f *Folder) GetCertPool() (*x509.CertPool, error)

func (*Folder) ParseFile

func (f *Folder) ParseFile() error

Jump to

Keyboard shortcuts

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