Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertTemplate ¶
func CertTemplate() (*x509.Certificate, error)
CertTemplate create x509 certificate template
func DeleteAuthToken ¶
func DeleteAuthToken() error
DeleteAuthToken removes auth_token file (test clean up)
func FetchAuthToken ¶
FetchAuthToken gets the authentication token from the auth token file & creates one if it doesn't exist Requires that the config has been set up before calling
func GenerateKeyPair ¶
func GenerateKeyPair(bits int) (*rsa.PrivateKey, error)
GenerateKeyPair create a public/private keypair
func GenerateRootCert ¶
func GenerateRootCert(hosts []string, bits int) ( cert *x509.Certificate, certPEM []byte, rootKey *rsa.PrivateKey, err error)
GenerateRootCert generates a root certificate
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.