package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Oct 19, 2018
License: MIT
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func CreateCert(outpath, keypath, caKeyPath, caCertPath, keypassword string) error
-
func CreateCertInMemory(caKeyPath, caCertPath, caKeyPassword string, ips []net.IP, hostnames []string) ([]byte, []byte, error)
-
func GetIps() ([]net.IP, error)
func CreateCert(outpath, keypath, caKeyPath, caCertPath, keypassword string) error
CreateCert waits for a time > year 1970, then creates a certificate for the current ip address valid for 10 years
CreateCertInMemory creates a new client keypair in memory without writing to disk.
It returns (in pem format) newCert, newKey, error
GetIps gets all of the IP addresses assigned to this device.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.