certificate_request.go 575 B

1234567891011121314151617
  1. package sshutil
  2. import "golang.org/x/crypto/ssh"
  3. // CertificateRequests simulates a certificate request for SSH. SSH does not
  4. // have a concept of certificate requests, but the CA accepts the key and some
  5. // other parameters in the requests that are part of the certificate. This
  6. // struct will hold these parameters.
  7. //
  8. // CertificateRequests object will be used in the templates to set parameters
  9. // passed with the API instead of the validated ones.
  10. type CertificateRequest struct {
  11. Key ssh.PublicKey
  12. Type string
  13. KeyID string
  14. Principals []string
  15. }