signing

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package signing handles the loading of signing keys from files. It expects a configuration file with the key ID and potentially several private keys in the same directory. The key ID in the configuration file is used to determine which private key to load.

Example structure:

  • ./keyID.txt Content: "key1"
  • ./key1.pem
  • ./key2.pem

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	ID      string
	Private *rsa.PrivateKey
}

func FromFile

func FromFile(keyIDFilePath string) (*Key, error)

FromFile loads a signing key as indicated in the given key ID file.

func GenerateKey

func GenerateKey() (*Key, error)

GenerateKey is used in tests to generate a new signing key.

Jump to

Keyboard shortcuts

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