Documentation
¶
Index ¶
- func CreateCertificate(fileCrt, fileKey string, hosts []string, expire time.Duration) error
- func Deal(path, host string, port int, expire time.Duration) (*tls.Conn, error)
- func LoadClient(path string, hosts []string, expire time.Duration) (*x509.CertPool, error)
- func LoadServer(path string, hosts []string, expire time.Duration) (tls.Certificate, error)
- func Wrapper(path string, hosts []string, owner net.Listener, expire time.Duration) (net.Listener, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCertificate ¶ added in v1.1.259
* * CreateCertificate * @param fileCrt string, fileKey string, hosts []string, expire time.Duration * @return error *
func Deal ¶
* * Deal * @param path string, host string, port int, expire time.Duration * @return (*tls.Conn, error) *
func LoadClient ¶ added in v1.1.260
* * LoadClient * @param path string, hosts []string, expire time.Duration * @return (*x509.CertPool, error) *
func LoadServer ¶ added in v1.1.259
* * LoadServer * @param path string, hosts []string, expire time.Duration * @return (tls.Certificate, error) *
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.