| 
									
										
										
										
											2017-03-13 20:24:37 +00:00
										 |  |  | # tls
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-19 17:43:10 -04:00
										 |  |  | *tls* allows you to configure the server certificates for the TLS and gRPC servers. | 
					
						
							|  |  |  | For other types of servers it is ignored. | 
					
						
							| 
									
										
										
										
											2017-03-13 20:24:37 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## Syntax
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ~~~ txt | 
					
						
							| 
									
										
										
										
											2017-04-19 17:43:10 -04:00
										 |  |  | tls CERT KEY CA | 
					
						
							| 
									
										
										
										
											2017-03-13 20:24:37 +00:00
										 |  |  | ~~~ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Examples
 | 
					
						
							| 
									
										
										
										
											2017-04-19 17:43:10 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 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 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | ~~~ |