From 210d0cf7f1040c1372a79869b8b279a92a52baf5 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 24 May 2019 13:18:45 -0600 Subject: Implement custom cert selection policies; optimize matching for SNI --- modules/caddytls/tls.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/caddytls/tls.go') diff --git a/modules/caddytls/tls.go b/modules/caddytls/tls.go index 4e21ade..174d3e4 100644 --- a/modules/caddytls/tls.go +++ b/modules/caddytls/tls.go @@ -2,6 +2,7 @@ package caddytls import ( "crypto/tls" + "crypto/x509" "encoding/json" "fmt" "net/http" @@ -316,4 +317,11 @@ var supportedProtocols = map[string]uint16{ "tls1.3": tls.VersionTLS13, } +// publicKeyAlgorithms is the map of supported public key algorithms. +var publicKeyAlgorithms = map[string]pkAlgorithm{ + "rsa": pkAlgorithm(x509.RSA), + "dsa": pkAlgorithm(x509.DSA), + "ecdsa": pkAlgorithm(x509.ECDSA), +} + const automateKey = "automate" -- cgit v1.2.3