Documentation ¶
Index ¶
- func Der2Pem(data []byte, title string) string
- func GetCert(name, subject string) (*x509.Certificate, error)
- func GetCertBundle(name string, subject string) ([]byte, error)
- func GetCertBundleFilename(name string) string
- func GetCertFilename(name string) string
- func GetCertKey(name string) (key []byte, err error)
- func GetCertKeyFilename(name string) string
- func Pem2Der(PEMString string) ([]byte, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCert ¶
func GetCert(name, subject string) (*x509.Certificate, error)
GetCert return or create a self-signed Certificate.
func GetCertBundle ¶
GetCertBundle return or create a Certificate Bundle, based on GetCert and GetCertKey. Especially for client certificate, user may need to import to system.
func GetCertBundleFilename ¶
GetCertBundleFilename returns the file path of Certificate Bundle in the AppDataDir
func GetCertFilename ¶
GetCertFilename returns the file path of Certificate in the AppDataDir
func GetCertKey ¶
GetCertKey return or create a private key
func GetCertKeyFilename ¶
GetCertKeyFilename returns the file path of private key in the AppDataDir
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.