Documentation ¶
Overview ¶
Package testauthority implements a wrapper around native.Keygen that uses pre-computed keys.
Index ¶
- type Keygen
- func (n *Keygen) GenerateHostCert(c services.HostCertParams) ([]byte, error)
- func (n *Keygen) GenerateJWT() (pub []byte, priv []byte, err error)
- func (n *Keygen) GenerateKeyPair() (priv []byte, pub []byte, err error)
- func (n *Keygen) GeneratePrivateKey() (*keys.PrivateKey, error)
- func (n *Keygen) GenerateUserCert(c services.UserCertParams) ([]byte, error)
- func (n *Keygen) GetNewKeyPairFromPool() (priv []byte, pub []byte, err error)
- type PreparedKeyPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keygen ¶
func NewWithClock ¶
NewWithClock creates a new key generator with the specified configuration
func (*Keygen) GenerateHostCert ¶
func (n *Keygen) GenerateHostCert(c services.HostCertParams) ([]byte, error)
func (*Keygen) GenerateKeyPair ¶
GenerateKeyPair returns a new private key in PEM format and an ssh public key in authorized_key format.
func (*Keygen) GeneratePrivateKey ¶
func (n *Keygen) GeneratePrivateKey() (*keys.PrivateKey, error)
GeneratePrivateKey generates a new PrivateKey.
func (*Keygen) GenerateUserCert ¶
func (n *Keygen) GenerateUserCert(c services.UserCertParams) ([]byte, error)
type PreparedKeyPair ¶
Click to show internal directories.
Click to hide internal directories.