package
2.0.0-20211006190727-057b33161b90
Repository: https://github.com/plgd-dev/kit.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

CreatePemChain creates chain of PEM certificates.
LoadX509 loads certificates from file in PEM format.
LoadX509PrivateKey loads private key from file in PEM format.
NewDefaultCertPool loads system CAs and add custom CAs to cert pool.
NewDefaultTLSConfig return default *tls.Config with system CAs and add custom CAs to cert pool.
NewTLSConfig creates tls.Config with veryfication of client certificate.
NewTLSConfigFromConfiguration setup tls.Config that provides verification certificate with connection.
NewTLSConfigWithoutPeerVerification creates tls.Config without verify client certificate.
ParseX509Certificates parses the CA chain certificates from the DER data.
ParseX509FromPEM loads certificates from PEM format.
VerifyClientCertificate verifies client certificate.
VerifyServerCertificate verifies server certificate.

# Structs

TLSConfig set configuration.

# Type aliases

VerifyPeerCertificateFunc verifies content of certificate.