Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CipherDataBin string
var CipherSecLevel map[string]string = map[string]string{}
CipherSecLevel contains cipher and its security level Source: https://ciphersuite.info/
var RootCerts []*x509.Certificate
RootCerts contains root certificates, parsed from rootCertDataBin
Functions ¶
func GetInSecureCipherSuites ¶
func GetInSecureCipherSuites() []string
GetInSecureCipherSuites returns Ciphers with status `Insecure`. Insecure Ciphers either uses no authentication at all or does not provide confidentiality Ex: https://ciphersuite.info/cs/TLS_NULL_WITH_NULL_NULL/
func GetSecureCipherSuites ¶
func GetSecureCipherSuites() []string
GetSecureCiphers returns Ciphers with status `Recommended` and `Secure` Ex: https://ciphersuite.info/cs/TLS_AES_128_CCM_8_SHA256/
func GetWeakCipherSuites ¶
func GetWeakCipherSuites() []string
GetWeakCipherSuites returns Ciphers with status `Weak`. Weak Cipher suites use algorithms that are proven to be weak or can be broken Ex: https://ciphersuite.info/cs/TLS_RSA_WITH_AES_256_CBC_SHA/
func IsRootCert ¶ added in v1.1.1
func IsRootCert(cert *x509.Certificate) bool
IsRootCert checks if cert is root certificate
func ParseCertificates ¶ added in v1.1.1
func ParseCertificates(data []byte) ([]*x509.Certificate, error)
ParseCertificates parses certificates from data
Types ¶
This section is empty.