certcreator

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCert

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

func CreateCertInMemory

func CreateCertInMemory(caKeyPath, caCertPath, caKeyPassword string,
	ips []net.IP, hostnames []string) ([]byte, []byte, error)

CreateCertInMemory creates a new client keypair in memory without writing to disk. It returns (in pem format) newCert, newKey, error

func GetIps

func GetIps() ([]net.IP, error)

GetIps gets all of the IP addresses assigned to this device.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL