Documentation ¶
Index ¶
- func AppendTLSInfo(r *tools.ArrLog, t *tls.ConnectionState, insecure bool)
- func GenCertTemplate(names []string, cn string) (*x509.Certificate, *rsa.PrivateKey, error)
- func GetCertPool(cacertFiles []string) (*x509.CertPool, error)
- func GetSelfSigned(names []string, cn string) (*tls.Certificate, error)
- func Init(builtin_ca bool)
- func PEMDecodeFirst(data []byte) []byte
- func PEMEncode(data []byte, dataType string) []byte
- func PrintCert(r *tools.ArrLog, cert *x509.Certificate)
- func SelfSign(names []string, cn string) ([]byte, *rsa.PrivateKey, error)
- func Sign(certTemplate, parent *x509.Certificate, serviceCertPubKey *rsa.PublicKey, ...) ([]byte, error)
- func SignWith(names []string, cn, cacertFile, cakeyFile string) (*tls.Certificate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendTLSInfo ¶
func AppendTLSInfo(r *tools.ArrLog, t *tls.ConnectionState, insecure bool)
func GenCertTemplate ¶
func GenCertTemplate(names []string, cn string) (*x509.Certificate, *rsa.PrivateKey, error)
func GetSelfSigned ¶
func GetSelfSigned(names []string, cn string) (*tls.Certificate, error)
func PEMDecodeFirst ¶
func Sign ¶
func Sign(certTemplate, parent *x509.Certificate, serviceCertPubKey *rsa.PublicKey, caPrivKey *rsa.PrivateKey) ([]byte, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.