Documentation ¶ Overview ¶ Package cert provides operation functions on CA cert and key. Index ¶ func GetCA() ([]byte, []byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetCA ¶ func GetCA() ([]byte, []byte, error) GetCA returns a CA cert, a CA key or an error in file reading or writing process. If one of rootCA.crt and rootCA.key does not exist, new ones will be generated, wrote to current dir and returned. TODO: do not hardcode filename. Types ¶ This section is empty. Source Files ¶ View all Source files cert.go Click to show internal directories. Click to hide internal directories.