Versions in this module Expand all Collapse all v1 v1.5.43 May 2, 2024 v1.5.42 May 2, 2024 Changes in this version + const ACMEDirName + const ECCKey + const HTTPSCA + const MtlsImplantCA + const MtlsServerCA + const OperatorCA + const RSAKey + var ErrCertDoesNotExist = errors.New("Certificate does not exist") + var ErrWGPeerDoesNotExist = errors.New("wg peer does not exist") + var ErrWGServerKeysDoNotExist = errors.New("wg server keys do not exist") + var TLSKeyLogger = newKeyLogger() + func GenerateCertificateAuthority(caType string, commonName string) (*x509.Certificate, *ecdsa.PrivateKey) + func GenerateECCCertificate(caType string, commonName string, isCA bool, isClient bool) ([]byte, []byte) + func GenerateRSACertificate(caType string, commonName string, isCA bool, isClient bool) ([]byte, []byte) + func GenerateWGKeys(isPeer bool, wgPeerTunIP string) (string, string, error) + func GetACMEDir() string + func GetACMEManager(domain string) *autocert.Manager + func GetCertificate(caType string, keyType string, commonName string) ([]byte, []byte, error) + func GetCertificateAuthority(caType string) (*x509.Certificate, *ecdsa.PrivateKey, error) + func GetCertificateAuthorityPEM(caType string) ([]byte, []byte, error) + func GetECCCertificate(caType string, commonName string) ([]byte, []byte, error) + func GetRSACertificate(caType string, commonName string) ([]byte, []byte, error) + func GetWGPeers() (map[string]string, error) + func GetWGServerKeys() (string, string, error) + func HTTPSGenerateRSACertificate(host string) ([]byte, []byte, error) + func ImplantGenerateWGKeys(wgPeerTunIP string) (string, string, error) + func MtlsC2ImplantGenerateECCCertificate(name string) ([]byte, []byte, error) + func MtlsC2ServerGenerateECCCertificate(host string) ([]byte, []byte, error) + func OperatorClientGenerateCertificate(operator string) ([]byte, []byte, error) + func OperatorClientGetCertificate(operator string) ([]byte, []byte, error) + func OperatorClientListCertificates() []*x509.Certificate + func OperatorClientRemoveCertificate(operator string) error + func OperatorServerGenerateCertificate(hostname string) ([]byte, []byte, error) + func OperatorServerGetCertificate(hostname string) ([]byte, []byte, error) + func RemoveCertificate(caType string, keyType string, commonName string) error + func SaveCertificateAuthority(caType string, cert []byte, key []byte) + func SetupCAs() + func SetupWGKeys()