Documentation ¶
Overview ¶
Package signer implements certificate signature functionality for CF-SSL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultSigAlgo ¶
func DefaultSigAlgo(priv interface{}) x509.SignatureAlgorithm
DefaultSigAlgo returns an appropriate X.509 signature algorithm given the CA's private key.
Types ¶
type Signer ¶
type Signer struct { CA *x509.Certificate Priv interface{} Policy *config.Signing SigAlgo x509.SignatureAlgorithm }
A Signer contains a CA's certificate and private key for signing certificates, a Signing policy to refer to and a SignatureAlgorithm
func NewSigner ¶
NewSigner generates a new certificate signer using the certificate authority certificate and private key and Signing config for signing. caFile should contain the CA's certificate, and the cakeyFile should contain the private key. Both must be PEM-encoded.
Click to show internal directories.
Click to hide internal directories.