Documentation ¶
Index ¶
- type Signer
- func (s *Signer) GetDBAccessor() certdb.Accessor
- func (s *Signer) Info(req info.Req) (resp *info.Resp, err error)
- func (s *Signer) Policy() *config.Signing
- func (s *Signer) SetDBAccessor(dba certdb.Accessor)
- func (s *Signer) SetPolicy(policy *config.Signing)
- func (s *Signer) SetReqModifier(mod func(*http.Request, []byte))
- func (s *Signer) SigAlgo() x509.SignatureAlgorithm
- func (s *Signer) Sign(req signer.SignRequest) (cert []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
A Signer represents a CFSSL instance running as signing server. fulfills the signer.Signer interface
func (*Signer) GetDBAccessor ¶
GetDBAccessor returns the signers' cert db accessor, currently noop.
func (*Signer) Info ¶
Info sends an info request to the remote CFSSL server, receiving an Resp struct or an error in response.
func (*Signer) SetDBAccessor ¶
SetDBAccessor sets the signers' cert db accessor, currently noop.
func (*Signer) SetReqModifier ¶
SetReqModifier sets the function to call to modify the HTTP request prior to sending it
func (*Signer) SigAlgo ¶
func (s *Signer) SigAlgo() x509.SignatureAlgorithm
SigAlgo returns the RSA signer's signature algorithm.
func (*Signer) Sign ¶
func (s *Signer) Sign(req signer.SignRequest) (cert []byte, err error)
Sign sends a signature request to the remote CFSSL server, receiving a signed certificate or an error in response. The hostname, csr, and profileName are used as with a local signing operation, and the label is used to select a signing root in a multi-root CA.