signer

package
v0.0.0-...-edca319 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package signer package contains utilities for signing a given blob and return the certificate file and related intermediate certificates to be bundled with the package it's signing to be able to verify at the remote end.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCertificates

func ParseCertificates(certFile io.Reader) (
	signer crypto.Signer, leaf []byte, intermediate [][]byte, err error,
)

ParseCertificates takes a reader, usually a file with stacked PEM blocks in PKCS1 format that contains the private key and certificates. The certificates must be in the following order, leaf, intermediate..., [root]. The root CA is not required here. Note: The private key in the certificate file must be decrypted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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