kmsproxy

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorResponse = http.Response{StatusCode: 502, Status: "Connection Failed", ProtoMajor: 1, ProtoMinor: 1}
View Source
var SuccessResponse = http.Response{StatusCode: 200, Status: "Connection Established", ProtoMajor: 1, ProtoMinor: 1}
View Source
var UnsupportedResponse = http.Response{StatusCode: 405, Status: "Must CONNECT", ProtoMajor: 1, ProtoMinor: 1}

Functions

func WatchFile

func WatchFile(path string, onChange func()) error

Types

type Proxy

type Proxy struct {
	PACFile *string
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(
	ctx context.Context,
	caKey string,
	caCert *string,
	trust []string,
	clientKey string,
	clientCert *string,
	insecureSkipVerify bool,
	pacFile *string,
) (*Proxy, error)

func (*Proxy) ListenTLS

func (proxy *Proxy) ListenTLS(addr string) (net.Listener, error)

func (*Proxy) Serve

func (proxy *Proxy) Serve(addr string) error

func (*Proxy) ServePAC

func (proxy *Proxy) ServePAC(addr string) error

func (*Proxy) SignCertificate

func (proxy *Proxy) SignCertificate(commonName string, sans []string) (*tls.Certificate, error)

func (*Proxy) WatchClientCert

func (proxy *Proxy) WatchClientCert(ctx context.Context, sigs chan os.Signal) error

Jump to

Keyboard shortcuts

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