Documentation ¶
Index ¶
- Constants
- func GenerateECCCertificate(caType string, sans []string, isCA bool, isClient bool, listenerName string) ([]byte, []byte, error)
- func GenerateRSACertificate(caType string, sans []string, isCA bool, isClient bool, listenerName string) ([]byte, []byte, error)
- func GetCA(caType string, listenerName string) (*x509.Certificate, *ecdsa.PrivateKey, error)
- func GetCAPEM(caType string, listenerName string) ([]byte, []byte, error)
- func GetCertificatePath(caType string, isCA bool, isClient bool, listenerName string) (string, string, error)
- func GetSANs(host string, domains []string) ([]string, error)
- func HTTPSGenerateCertificates(lis *listener.Listener) error
- func RPCGenerateCertificates(conf *config.ServerConfig) error
- func SaveCertificate(caType string, isCA bool, isClient bool, listenerDir string, certPEM []byte, ...) error
Constants ¶
View Source
const ( CATYPE_GRPC = "grpc" CATYPE_HTTPS = "https" CATYPE_RPC = "rpc" CATYPE_STAGER = "stage" )
View Source
const ( ECCKEY = "ecc" RSAKEY = "rsa" )
Variables ¶
This section is empty.
Functions ¶
func GenerateECCCertificate ¶
func GenerateRSACertificate ¶
func GetCA ¶
func GetCA(caType string, listenerName string) (*x509.Certificate, *ecdsa.PrivateKey, error)
func GetCertificatePath ¶
func RPCGenerateCertificates ¶
func RPCGenerateCertificates(conf *config.ServerConfig) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.