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.
Click to show internal directories.
Click to hide internal directories.