mohammed90 / caddy-ngrok-listener

Caddy listener_wrapper to automatically listen on an ngrok tunnel
Apache License 2.0
20 stars 2 forks source link

[TLSEndpointOption] [HTTPEndpointOption] WithMutualTLSCA #12

Open jtszalay opened 1 year ago

jtszalay commented 1 year ago

Surface the following Tunnel Option:


// https://github.com/ngrok/ngrok-go/blob/main/config/mutual_tls.go

type mutualTLSEndpointOption []*x509.Certificate

// WithMutualTLSCA adds a list of [x509.Certificate]'s to use for mutual TLS
// authentication.
// These will be used to authenticate client certificates for requests at the
// ngrok edge.
func WithMutualTLSCA(certs ...*x509.Certificate) interface {
    HTTPEndpointOption
    TLSEndpointOption
}