caroot

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPerm        = 0o600
	DefaultRsaKeySize  = 4096
	DefaultYearCertDur = 1000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CA

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

func New

func New() *CA

func (*CA) CaCerBytes

func (c *CA) CaCerBytes() ([]byte, error)

func (*CA) GenCertFilesForDomain

func (c *CA) GenCertFilesForDomain(domain string, dir string) error

func (*CA) GenCertFilesForDomainInRootDir

func (c *CA) GenCertFilesForDomainInRootDir(d string) error

func (*CA) GenCertForDomain

func (c *CA) GenCertForDomain(domain string) ([]byte, []byte, error)

func (*CA) GetCATLS

func (c *CA) GetCATLS() tls.Certificate

func (*CA) GetCertFromRoot

func (c *CA) GetCertFromRoot(domain string) (tls.Certificate, error)

func (*CA) GetOrGenFromRoot

func (c *CA) GetOrGenFromRoot(domain string) (tls.Certificate, error)

func (*CA) Init

func (c *CA) Init(rdir string, installca func(ca string)) error

Jump to

Keyboard shortcuts

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