Documentation
¶
Overview ¶
Package transparent serves gopherstack over HTTPS for unmodified AWS SDKs that target real *.amazonaws.com endpoints (DNS points them at gopherstack).
Index ¶
Constants ¶
View Source
const ( // DefaultAddr is the HTTPS listen address real AWS endpoints expect. DefaultAddr = ":443" // CAPath serves the CA certificate clients must trust. CAPath = "/_gopherstack/ca.pem" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CertSource ¶
type CertSource struct {
// contains filtered or unexported fields
}
CertSource issues leaf certificates on demand from SNI, signed by a CA.
func NewCertSource ¶
func NewCertSource(ca *devtls.CA) *CertSource
NewCertSource creates a CertSource backed by ca.
func (*CertSource) GetCertificate ¶
func (c *CertSource) GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
GetCertificate implements tls.Config.GetCertificate. A name's certificate also covers its siblings via a one-label wildcard on the parent zone.
Click to show internal directories.
Click to hide internal directories.