certificates

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorParamsEmpty errors.CodeError = iota + errors.MIN_PKG_Certif
	ErrorFileStat
	ErrorFileRead
	ErrorCertAppend
	ErrorCertKeyPairLoad
	ErrorCertKeyPairParse
)

Variables

This section is empty.

Functions

func AddCACertificateContents

func AddCACertificateContents(caContent string) bool

func AddCACertificateFile

func AddCACertificateFile(caFile string) Error

func AddCertificateContents

func AddCertificateContents(keyContents, certContents string) Error

func AddCertificateFile

func AddCertificateFile(keyFile, certFile string) Error

func AddRootCAContents

func AddRootCAContents(rootContent string) bool

func AddRootCAFile

func AddRootCAFile(rootFile string) Error

func AppendCertificates

func AppendCertificates(cert []tls.Certificate) []tls.Certificate

func CheckCertificates

func CheckCertificates() bool

func GetCertificates

func GetCertificates() []tls.Certificate

func GetCipherKey

func GetCipherKey(cipher string) uint16

func GetClientCA

func GetClientCA() *x509.CertPool

func GetCurveID

func GetCurveID(curveRef string) tls.CurveID

func GetRootCA

func GetRootCA() *x509.CertPool

func GetTLSConfig

func GetTLSConfig(serverName string) *tls.Config

func GetTlsConfigCertificates

func GetTlsConfigCertificates() *tls.Config

func InitRootCA

func InitRootCA()

func IsCodeError

func IsCodeError() bool

func SetCipherList

func SetCipherList(cipher []uint16)

func SetClientAuth

func SetClientAuth(auth string)

func SetCurve

func SetCurve(curves []tls.CurveID)

func SetDynamicSizing

func SetDynamicSizing(enable bool)

func SetSessionTicket

func SetSessionTicket(enable bool)

func SetStringTlsVersion

func SetStringTlsVersion(tlsVersStr string) uint16

func SetVersionMax

func SetVersionMax(vers uint16)

func SetVersionMin

func SetVersionMin(vers uint16)

Types

This section is empty.

Jump to

Keyboard shortcuts

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