ca

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package ca implements a disk file-backed certificate authority with a built-in CRL signer. The certificate authority can issue new certificates (including the creation of intermediate CAs) and revoke existing certificates, resulting in a fresh CRL.

Package ca implements a disk file-backed certificate authority with a built-in CRL signer. The certificate authority can issue new certificates (including the creation of intermediate CAs) and revoke existing certificates, resulting in a fresh CRL.

Package ca implements a disk file-backed certificate authority with a built-in CRL signer. The certificate authority can issue new certificates (including the creation of intermediate CAs) and revoke existing certificates, resulting in a fresh CRL.

Package ca implements a disk file-backed certificate authority with a built-in CRL signer. The certificate authority can issue new certificates (including the creation of intermediate CAs) and revoke existing certificates, resulting in a fresh CRL.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeSubjectKeyId

func ComputeSubjectKeyId(key *rsa.PublicKey) []byte

Types

type CA

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

func Create

func Create(dir string, template *x509.Certificate, key *rsa.PrivateKey) (*CA, error)

func Open

func Open(dir string) (*CA, error)

Open an existing certificate authority in the given directory.

func (*CA) CreateIntermediate

func (ca *CA) CreateIntermediate(dir string, template *x509.Certificate, key *rsa.PrivateKey) (*CA, error)

func (*CA) GetCRL

func (ca *CA) GetCRL() *x509.RevocationList

func (*CA) GetCRLSigner

func (ca *CA) GetCRLSigner() *x509.Certificate

func (*CA) GetRoot

func (ca *CA) GetRoot() *x509.Certificate

func (*CA) Revoke

func (ca *CA) Revoke(serial *big.Int) (*x509.RevocationList, error)

func (*CA) Sign

func (ca *CA) Sign(template *x509.Certificate, key *rsa.PublicKey) (*x509.Certificate, string, error)

Jump to

Keyboard shortcuts

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