mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-15 18:12:59 +00:00
df1f7e5a2e
SSH does not have a real concept of ssh certificate request, but we are using the type to encapsulate the parameters coming in the request.
18 lines
577 B
Go
18 lines
577 B
Go
package sshutil
|
|
|
|
import "golang.org/x/crypto/ssh"
|
|
|
|
// CertificateRequests simulates a certificate request for SSH. SSH does not
|
|
// have a concept of certificate requests, but the CA accepts the key and some
|
|
// other parameters in the requests that are part of the certificate. This
|
|
// struct will hold these parameters.
|
|
//
|
|
// CertificateRequests object will be used in the templates to set parameters
|
|
// passed with the API instead of the validated ones.
|
|
type CertificateRequest struct {
|
|
Key ssh.PublicKey
|
|
Type CertType
|
|
KeyID string
|
|
Principals []string
|
|
}
|