tlsx

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTLSConfig

func NewTLSConfig(tlsCfg *TLS) (*tls.Config, bool, error)

NewTLSConfig 根据 TLS 配置生成 *tls.Config。

Types

type TLS

type TLS struct {
	// CaCert 为 CA 证书文件路径。
	CaCert string `json:"ca_cert"`
	// ClientCert 为客户端证书文件路径。
	ClientCert string `json:"client_cert"`
	// ClientCertKey 为客户端证书私钥文件路径。
	ClientCertKey string `json:"client_cert_key"`
}

TLS TLS(双向)证书配置。

Jump to

Keyboard shortcuts

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