signserver

package
v0.189.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ReferenceScheme = "signserver"

ReferenceScheme is the scheme to be used when using signserver keys. Ex: signserver://host/worker

Variables

This section is empty.

Functions

func ParseKeyReference

func ParseKeyReference(keyPath string) (string, string, error)

ParseKeyReference interprets a key reference for SignServer

Types

type Signer

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

Signer implements a signer for SignServer

func NewSigner

func NewSigner(host, worker string, opts ...SignerOpt) *Signer

func (Signer) PublicKey

func (Signer) SignMessage

func (s Signer) SignMessage(message io.Reader, _ ...sigstoresigner.SignOption) ([]byte, error)

SignMessage Signs a message by calling to SignServer

type SignerOpt added in v0.174.0

type SignerOpt func(*Signer)

func WithCAPath added in v0.174.0

func WithCAPath(caPath string) SignerOpt

func WithClientCertPass added in v0.175.0

func WithClientCertPass(clientCertPass string) SignerOpt

func WithClientCertPath added in v0.174.0

func WithClientCertPath(clientCertPath string) SignerOpt

Jump to

Keyboard shortcuts

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