jtls

package
v1.1.290 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificate added in v1.1.259

func CreateCertificate(fileCrt, fileKey string, hosts []string, expire time.Duration) error

* * CreateCertificate * @param fileCrt string, fileKey string, hosts []string, expire time.Duration * @return error *

func Deal

func Deal(path, host string, port int, expire time.Duration) (*tls.Conn, error)

* * Deal * @param path string, host string, port int, expire time.Duration * @return (*tls.Conn, error) *

func LoadClient added in v1.1.260

func LoadClient(path string, hosts []string, expire time.Duration) (*x509.CertPool, error)

* * LoadClient * @param path string, hosts []string, expire time.Duration * @return (*x509.CertPool, error) *

func LoadServer added in v1.1.259

func LoadServer(path string, hosts []string, expire time.Duration) (tls.Certificate, error)

* * LoadServer * @param path string, hosts []string, expire time.Duration * @return (tls.Certificate, error) *

func Wrapper

func Wrapper(path string, hosts []string, owner net.Listener, expire time.Duration) (net.Listener, error)

* * WrapperServer * @param path string, hosts []string, owner net.Listener, expire time.Duration * @return net.Listener *

Types

This section is empty.