pki

package
v0.0.0-...-69275e8 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDoesNotExist = errors.New("does not exist")
)

Functions

This section is empty.

Types

type PKIService

type PKIService struct {
	EasyPKI *easypki.EasyPKI
}

func NewPKIService

func NewPKIService(easyPKI *easypki.EasyPKI) *PKIService

func (*PKIService) GetCACertificate

func (service *PKIService) GetCACertificate(caName string) (*x509.Certificate, error)

func (*PKIService) GetClientKeyPair

func (service *PKIService) GetClientKeyPair(
	caName string,
	subject string,
	emailAddresses []string,
	expiry time.Time,
) (*rsa.PrivateKey, *x509.Certificate, error)

func (*PKIService) GetClientTLSCertificate

func (service *PKIService) GetClientTLSCertificate(
	caName string,
	subject string,
	expiry time.Time,
) (tls.Certificate, error)

func (*PKIService) GetKeyPairImpl

func (service *PKIService) GetKeyPairImpl(
	caName string,
	subject string,
	ipAddresses []net.IP,
	emailAddresses []string,
	expiry time.Time,
) (*rsa.PrivateKey, *x509.Certificate, error)

func (*PKIService) GetServerKeyPair

func (service *PKIService) GetServerKeyPair(
	caName string,
	subject string,
	ipAddresses []net.IP,
	expiry time.Time,
) (*rsa.PrivateKey, *x509.Certificate, error)

Jump to

Keyboard shortcuts

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