Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertAuth ¶
type CertAuth struct {
ExpiryTime int
CAName pkix.Name
CertReq *x509.Certificate
Key *rsa.PrivateKey
PemCert string
PemKey string
}
func CAFromConfig ¶
type CertClient ¶
type CertClient struct {
Name string
ExpiryTime int
CAName pkix.Name
IP []string
DNS []string
Key *rsa.PrivateKey
CertReq *x509.Certificate
PemCert string
PemKey string
}
func CertsFromConfig ¶
func CertsFromConfig(cfg config.Config) []CertClient
func (*CertClient) GenCert ¶
func (cc *CertClient) GenCert(ca *CertAuth) error
func (*CertClient) Write ¶
func (cc *CertClient) Write(path string) error
Click to show internal directories.
Click to hide internal directories.