cert

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(opt CertOpt) error

func Verify

func Verify(opt CertOpt) bool

Types

type CertOpt

type CertOpt struct {
	Host       string
	ValidFor   time.Duration
	IsCA       *bool
	RSABits    int
	ECDSACurve string
	ED25519Key bool

	CertPath string
	KeyPath  string
}

Jump to

Keyboard shortcuts

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