Documentation ¶
Overview ¶
Package insecure provides an insecure (if it were not obvious yet) TLS proxy that can be used for testing osquery enrollment with a Fleet (or other TLS) server in non-production environments.
Functions in this package are NOT SUITABLE FOR PRODUCTION ENVIRONMENTS!
Index ¶
Constants ¶
View Source
const ( // ServerCert is the certificate used by the proxy server. ServerCert = `` /* 977-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TLSProxy ¶
type TLSProxy struct { // Port is the port the TLS proxy is listening on (always on localhost). Port int // contains filtered or unexported fields }
TLSProxy is the insecure TLS proxy implementation. This type should only be initialized via NewTLSProxy.
func NewTLSProxy ¶
NewTLSProxy creates a new proxy implementation targeting the provided hostname.
func (*TLSProxy) Close ¶
Close the server and associated listener. The server may not be reused after calling Close().
func (*TLSProxy) InsecureServeTLS ¶
InsecureServeTLS will begin running the TLS proxy.
Click to show internal directories.
Click to hide internal directories.