storage

package
v0.0.0-...-812e915 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertificateExtension = "pem"
	PrivateKeyExtension  = "key"
)

We'll use .pem and .key files to store our certificate and private key, trying to play nice with x509 standards Note that this storage doesn't know anything about the encoding and merely exists to write bytes to disk

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	storage.Storage
}

func (*Certificate) GetCertificate

func (c *Certificate) GetCertificate(domain string, sans []string) (publicChain, privateKey []byte, err error)

func (*Certificate) PutCertificate

func (c *Certificate) PutCertificate(domain string, sans []string, publicChain, privateKey []byte) (err error)

Jump to

Keyboard shortcuts

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