File: certificate_request.go

package info (click to toggle)
golang-github-smallstep-crypto 0.63.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,800 kB
  • sloc: sh: 66; makefile: 50
file content (17 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package sshutil

import "golang.org/x/crypto/ssh"

// CertificateRequest 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.
//
// CertificateRequest 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       string
	KeyID      string
	Principals []string
}