certificates

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Unlicense Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Day        time.Duration = 24 * time.Hour
	Year                     = 365 * Day
	HalfDecade               = 1827 * Day
	Decade                   = 3653 * Day
)

Variables

This section is empty.

Functions

func PfxSplitter

func PfxSplitter(pfxFile, password string) (err error)

func WriteSelfSingedGraphAppCertificates

func WriteSelfSingedGraphAppCertificates(filename string, days time.Duration) (err error)

Types

type MsGraphCertificateResult

type MsGraphCertificateResult struct {
	Keys []byte
	Cert []byte
}

func CreateSelfSingedGraphAppCertificate

func CreateSelfSingedGraphAppCertificate(days time.Duration) (result *MsGraphCertificateResult, err error)

type TlsCertificateResult

type TlsCertificateResult struct {
	PrivateKey  []byte
	Certificate []byte

	Accepted []string
}

func CreateSelfSignedTlsCertificate

func CreateSelfSignedTlsCertificate(acceptedHostNames []string, days time.Duration) (data *TlsCertificateResult, err error)

Jump to

Keyboard shortcuts

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