Documentation ¶
Index ¶
- type Authority
- func (s *Authority) PublicKey(ctx context.Context, r *shapes.KeyRequest) (*shapes.KeyResponse, error)
- func (a *Authority) PublicKeyHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Authority) Sign(ctx context.Context, r *shapes.SignRequest) (*shapes.KeyResponse, error)
- func (a *Authority) SignHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authority ¶
type Authority struct { // The Signer that signs requests CA sign.Signer // The CA comment to emit on the PublicKey CaComment string // The duration to sign keys for Duration time.Duration IdentityHeader string }
Authority is an SSH CA signing server
func (*Authority) PublicKey ¶
func (s *Authority) PublicKey(ctx context.Context, r *shapes.KeyRequest) (*shapes.KeyResponse, error)
PublicKey returns the server's public key
func (*Authority) PublicKeyHTTP ¶
func (a *Authority) PublicKeyHTTP(w http.ResponseWriter, r *http.Request)
PublicKeyHTTP is an endpoint for exporting the SSH public key of the CA server
func (*Authority) Sign ¶
func (s *Authority) Sign(ctx context.Context, r *shapes.SignRequest) (*shapes.KeyResponse, error)
Sign handler for incoming certificate requests
Click to show internal directories.
Click to hide internal directories.