xtls

package
v1.50.3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 6 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailedToLoadCACert = errors.New("failed to load CACertificate")

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled bool `json:"enabled" yaml:"enabled"`

	// Skip server certificate and domain verification.
	Insecure bool `json:"insecure" yaml:"insecure" config:"allowempty"`

	// Server name indication for TLS.
	ServerName string `json:"serverName" yaml:"server_name" config:"allowempty"`

	// File containing trusted root certificates for verifying the server.
	CACertFile string `json:"caCertFile" yaml:"ca_cert_file" config:"allowempty"`

	// File containing client certificate (public key), to present to the
	// server. Must also provide @ClientKey option.
	ClientCertFile string `json:"clientCertFile" yaml:"client_cert_file" config:"allowempty"`

	// File containing client private key, to present to the server.
	// Must also provide @ClientCert option.
	ClientKeyFile string `json:"clientKeyFile" yaml:"client_key_file" config:"allowempty"`
}

func (*Config) ClientTLSConfig

func (c *Config) ClientTLSConfig() (*tls.Config, error)

Jump to

Keyboard shortcuts

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