diff options
Diffstat (limited to 'modules/caddytls/tls.go')
-rw-r--r-- | modules/caddytls/tls.go | 8 |
1 files changed, 8 insertions, 0 deletions
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" |