privatekey

package
v0.0.0-...-242d746 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(keyPath string) (crypto.Signer, crypto.PublicKey, error)

Load decodes and parses a private key from the provided file path and returns the private key as crypto.Signer. keyPath is expected to be a PEM formatted RSA or ECDSA private key in a PKCS #1, PKCS# 8, or SEC 1 container. The embedded PublicKey of the provided private key will be verified as an actual match for the private key and returned as a crypto.PublicKey. This function is only intended for use in administrative tooling and tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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