security

package
v0.0.0-...-3f97f43 Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CA

type CA struct {
	Organization  string
	Country       string
	Province      string
	Locality      string
	StreetAddress string
	PostalCode    string
	// contains filtered or unexported fields
}

func (*CA) Certificate

func (ca *CA) Certificate(serial int64) (cert *Certificate)

func (*CA) Register

func (ca *CA) Register(serial int64) (err error)

type CAS

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

func GLOBALCAS

func GLOBALCAS() *CAS

func (*CAS) CA

func (cas *CAS) CA(serial int64) (ca *CA)

func (*CAS) Register

func (cas *CAS) Register(serial int64, stngs ...map[string]interface{}) (ca *CA, err error)

type Certificate

type Certificate struct {
	Organization  string
	Country       string
	Province      string
	Locality      string
	StreetAddress string
	PostalCode    string
	// contains filtered or unexported fields
}

func (*Certificate) ClientTLSConf

func (cert *Certificate) ClientTLSConf() (clnttlsconf *tls.Config)

func (*Certificate) ServerTLSConf

func (cert *Certificate) ServerTLSConf() (svrtlsconf *tls.Config)

Jump to

Keyboard shortcuts

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