assets

package
v1.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CipherDataBin string
View Source
var CipherSecLevel map[string]string = map[string]string{}

CipherSecLevel contains cipher and its security level Source: https://ciphersuite.info/

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL