Documentation ¶
Index ¶
- func Generate(conf config.Config, overwrite bool) error
- func GenerateNewSSHKey(filename string, overwrite bool, printPubKey bool) error
- func ProcessSignatureRequest(conf config.Config, sr shared.SignatureRequest) (resp shared.SignatureResponse, err error)
- func SignKey(caKeyLocation, keyID, principals, expiration, publicKey string) (signature string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
Generate a new CA key based off of the data in the config. If overwrite, it will overwrite the current CA key. Prints the generated public key to stdout.
func GenerateNewSSHKey ¶
Generate a new ssh key. Store the private key at filename and the public key at filename.pub. If overwrite, it will overwrite anything at filename or filename.pub. If printPubKey, it will print the generated public key to stdout.
func ProcessSignatureRequest ¶
func ProcessSignatureRequest(conf config.Config, sr shared.SignatureRequest) (resp shared.SignatureResponse, err error)
Process a given SignatureRequest into a SignatureResponse or an error. This consists of validating the signature request, determining the correct principals, and signing the provided public key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.