signer

package
v0.0.0-...-666132b Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package signer implements a CA signer that uses keys stored on local disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer struct {
	CertTTL time.Duration
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner(signerRoot, signerName string, certificateDuration time.Duration) (*Signer, error)

func (*Signer) GetRootCerts

func (s *Signer) GetRootCerts() string

func (*Signer) Sign

func (s *Signer) Sign(x509cr *x509.CertificateRequest, usages []capi.KeyUsage, requestedLifetime time.Duration, appendRootCert bool) ([]byte, error)

Jump to

Keyboard shortcuts

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