Documentation
¶
Index ¶
- Constants
- func ParseDomains(domainStr []string) ([]string, error)
- func ParseIPs(ipStr []string) ([]net.IP, error)
- type CA
- type RootCA
- type TLSCA
- func (c *TLSCA) CreateCert() error
- func (c *TLSCA) CreateKey() error
- func (c *TLSCA) Sign(commonName string, domains []string, ips []net.IP, days, keyBits int) (*rsa.PrivateKey, *x509.Certificate, error)
- func (c *TLSCA) Write(keyPath, certPath, chainPath string) error
- func (c *TLSCA) WriteCert(commonName string, key *rsa.PrivateKey, cert *x509.Certificate, ...) error
Constants ¶
View Source
const (
MaxTLSDays = 825
)
Variables ¶
This section is empty.
Functions ¶
func ParseDomains ¶
Types ¶
type RootCA ¶
type RootCA struct { Key *rsa.PrivateKey Cert *x509.Certificate KeyBits int // 1024 * 2^x }
func LoadRootCA ¶
LoadRootCA create new tls CA
type TLSCA ¶
type TLSCA struct { Key *rsa.PrivateKey Cert *x509.Certificate KeyBits int // 1024 * 2^x RootCert *x509.Certificate RootKey *rsa.PrivateKey }
func NewTLSCA ¶
func NewTLSCA(keyBits int, rootCert *x509.Certificate, rootKey *rsa.PrivateKey) (*TLSCA, error)
NewTLSCA create new tls CA
func (*TLSCA) WriteCert ¶
func (c *TLSCA) WriteCert(commonName string, key *rsa.PrivateKey, cert *x509.Certificate, tlsChainPath string) error
Click to show internal directories.
Click to hide internal directories.