Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCertificate ¶
func GenerateCertificate(serial int64, country string, organization string, commonName string, expire time.Time, localIP net.IP) ([]byte, []byte)
GenerateCertificate generates a self-signed certificate for the given host and returns the private RSA key and the generated certificate PEM encoded.
func GetLocalIP ¶
GetLocalIP returns the non loopback local IP of the host.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.