coredns/middleware/tls
Yue Ko 387d3f5a41 Fix TLS error message (#634)
Print corresponding error message when TLS initialization fails.
2017-04-20 09:40:18 -04:00
..
README.md Clean up the tls middleware README (#631) 2017-04-19 22:43:10 +01:00
tls.go Fix TLS error message (#634) 2017-04-20 09:40:18 -04:00
tls_test.go core: add more transports (#574) 2017-03-13 20:24:37 +00:00

tls

tls allows you to configure the server certificates for the TLS and gRPC servers. For other types of servers it is ignored.

Syntax

tls CERT KEY CA

Examples

Start a DNS-over-TLS server.

tls://.:4453 {
	tls cert.pem key.pem ca.pem
	proxy . /etc/resolv.conf
}

Start a DNS-over-gRPC server. If the tls directive were omitted, then it would use plain HTTP not HTTPS.

grpc://.:443 {
	tls cert.pem key.pem ca.pem
	proxy . /etc/resolv.conf
}