aghtls

package
v0.107.48 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package aghtls contains utilities for work with TLS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertificateHasIP added in v0.107.17

func CertificateHasIP(cert *x509.Certificate) (ok bool)

CertificateHasIP returns true if cert has at least a single IP address among its subjectAltNames.

func ParseCiphers added in v0.107.17

func ParseCiphers(cipherNames []string) (cipherIDs []uint16, err error)

ParseCiphers parses a slice of cipher suites from cipher names.

func SaferCipherSuites

func SaferCipherSuites() (safe []uint16)

SaferCipherSuites returns a set of default cipher suites with vulnerable and weak cipher suites removed.

func SystemRootCAs added in v0.107.17

func SystemRootCAs() (roots *x509.CertPool)

SystemRootCAs tries to load root certificates from the operating system. It returns nil in case nothing is found so that Go' crypto/x509 can use its default algorithm to find system root CA list.

See https://github.com/AdguardTeam/AdGuardHome/issues/1311.

Types

This section is empty.

Jump to

Keyboard shortcuts

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