softcas

package
v0.0.0-...-c397b60 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SoftCAS

type SoftCAS struct {
	CertificateChain  []*x509.Certificate
	Signer            crypto.Signer
	CertificateSigner func() ([]*x509.Certificate, crypto.Signer, error)
	KeyManager        kms.KeyManager
}

SoftCAS implements a Certificate Authority Service using Golang or KMS crypto. This is the default CAS used in step-ca.

func New

func New(_ context.Context, opts apiv1.Options) (*SoftCAS, error)

New creates a new CertificateAuthorityService implementation using Golang or KMS crypto.

func (*SoftCAS) CreateCRL

func (c *SoftCAS) CreateCRL(req *apiv1.CreateCRLRequest) (*apiv1.CreateCRLResponse, error)

CreateCRL will create a new CRL based on the RevocationList passed to it

func (*SoftCAS) CreateCertificate

CreateCertificate signs a new certificate using Golang or KMS crypto.

func (*SoftCAS) CreateCertificateAuthority

CreateCertificateAuthority creates a root or an intermediate certificate.

func (*SoftCAS) RenewCertificate

RenewCertificate signs the given certificate template using Golang or KMS crypto.

func (*SoftCAS) RevokeCertificate

RevokeCertificate revokes the given certificate in step-ca. In SoftCAS this operation is a no-op as the actual revoke will happen when we store the entry in the db.

func (*SoftCAS) Type

func (c *SoftCAS) Type() apiv1.Type

Type returns the type of this CertificateAuthorityService.

Jump to

Keyboard shortcuts

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