Documentation ¶
Index ¶
- func Verify(pubkey sshcert.RawPublicKey, token, signature string) error
- type AuthToken
- type CA
- func (c *CA) PolicyURL() string
- func (c *CA) PublicKey() sshcert.RawPublicKey
- func (c *CA) RequestPolicy(ctx context.Context, token string) (*CertParams, error)
- func (c *CA) Sign(value string) (signature string, err error)
- func (c *CA) SignPublicKey(rawPubKey sshcert.RawPublicKey, params *CertParams) (sshcert.RawCertificate, error)
- type CertParams
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthToken ¶
AuthToken is the token passed from the plugin through to the CA (and to the ca verifier plugin matching Provider) Token is opaque and can hold whatever the plugins need it to
type CA ¶
type CA struct {
// contains filtered or unexported fields
}
CA performs CA operations
func (*CA) PublicKey ¶
func (c *CA) PublicKey() sshcert.RawPublicKey
PublicKey returns the ssh on-disk format public key for the CA
func (*CA) RequestPolicy ¶
RequestPolicy requests policy from the policy url
func (*CA) SignPublicKey ¶
func (c *CA) SignPublicKey(rawPubKey sshcert.RawPublicKey, params *CertParams) (sshcert.RawCertificate, error)
SignPublicKey signs a key to generate a certificate
Click to show internal directories.
Click to hide internal directories.