Documentation ¶
Overview ¶
Package configutil contains utility routines for the keymaster client.
Index ¶
- func GenKeyPair(privateKeyPath string, identity string, logger log.Logger) (privateKey crypto.Signer, publicKeyPath string, err error)
- func GenerateKey() (*rsa.PrivateKey, error)
- func GetHttpClient(tlsConfig *tls.Config) (*http.Client, error)
- func GetUserCreds(userName string) (password []byte, err error)
- func GetUserHomeDir(usr *user.User) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenKeyPair ¶
func GenKeyPair( privateKeyPath string, identity string, logger log.Logger) ( privateKey crypto.Signer, publicKeyPath string, err error)
GenKeyPair uses internal golang functions to be portable
func GenerateKey ¶
func GenerateKey() (*rsa.PrivateKey, error)
GenerateKey generates a random 2048 byte rsa key
func GetHttpClient ¶
GetHttpClient returns an http client instance to use given a particular TLS configuration.
func GetUserCreds ¶
GetUserCreds prompts the user for thier password and returns it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.