Add initial implementation of an SSH CA using the JWK provisioner.
Fixes smallstep/ca-component#187
This commit is contained in:
parent
5356bce4d8
commit
1c8f610ca9
10 changed files with 730 additions and 9 deletions
|
@ -26,6 +26,7 @@ import (
|
|||
|
||||
// Authority is the interface implemented by a CA authority.
|
||||
type Authority interface {
|
||||
SSHAuthority
|
||||
// NOTE: Authorize will be deprecated in future releases. Please use the
|
||||
// context specific Authoirize[Sign|Revoke|etc.] methods.
|
||||
Authorize(ott string) ([]provisioner.SignOption, error)
|
||||
|
@ -249,6 +250,8 @@ func (h *caHandler) Route(r Router) {
|
|||
r.MethodFunc("GET", "/federation", h.Federation)
|
||||
// For compatibility with old code:
|
||||
r.MethodFunc("POST", "/re-sign", h.Renew)
|
||||
// SSH CA
|
||||
r.MethodFunc("POST", "/sign-ssh", h.SignSSH)
|
||||
}
|
||||
|
||||
// Health is an HTTP handler that returns the status of the server.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue