certmgr

package module
v0.0.0-...-260c508 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

package certmgr implements the Delta certificate manager. It is configured by the certauth parameters in delta_cfg.json

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertToPEM

func CertToPEM(cert *x509.Certificate) (pemblock []byte)

func KeyToPEM

func KeyToPEM(certkey *rsa.PrivateKey) (pemblock []byte)

func PEMToCert

func PEMToCert(pemblock []byte) (*x509.Certificate, error)

func PEMToKey

func PEMToKey(pemblock []byte) (*rsa.PrivateKey, error)

Types

type CertManager

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

func (CertManager) CertificateExists

func (cm CertManager) CertificateExists(certtype string, commonname string) (maybe bool, err error)

func (CertManager) GenerateClientCert

func (cm CertManager) GenerateClientCert(names pkix.Name, dnsnames []string) (certificate *x509.Certificate, privkey *rsa.PrivateKey, err error)

func (CertManager) GenerateServerCert

func (cm CertManager) GenerateServerCert(names pkix.Name, dnsnames []string) (certificate *x509.Certificate, privkey *rsa.PrivateKey, err error)

func (CertManager) GetClientCACertPool

func (cm CertManager) GetClientCACertPool() *x509.CertPool

func (*CertManager) HasCA

func (cm *CertManager) HasCA() bool

func (CertManager) RetrieveClientCert

func (cm CertManager) RetrieveClientCert(clientID string, hostname string) (certificate *x509.Certificate, privkey *rsa.PrivateKey, err error)

func (CertManager) RevokeClientCert

func (cm CertManager) RevokeClientCert(clientID, serialnr int64) (done bool, err error)

func (*CertManager) SetAudit

func (cm *CertManager) SetAudit(au *audit.Audit)

func (CertManager) VerifyClientCertificate

func (cm CertManager) VerifyClientCertificate(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error

Jump to

Keyboard shortcuts

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