Documentation
¶
Index ¶
Constants ¶
View Source
const ServerName = constants.EnclaveDNSName
ServerName is the SAN of the server's X.509 certificate.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClientFactory ¶
type HTTPClientFactory func(rootCA *x509.Certificate) HTTPClient
func DefaultHTTPClientFactory ¶
func DefaultHTTPClientFactory(clientCertificate tls.Certificate) HTTPClientFactory
DefaultHTTPClientFactory returns a secure HTTPClientFactory suitable for the most common uses.
type Server ¶
func NewProxyServer ¶
func NewProxyServer(backendServerAddr string, uniqueID string, httpClientFactory HTTPClientFactory, ownerCert []byte, insecure bool) (*Server, error)
NewProxyServer creates a new server that forwards requests to the backend server, handling attestation and authentication.
Click to show internal directories.
Click to hide internal directories.