Separate out certificate selection

This commit is contained in:
Matthew Holt
2019-05-27 11:31:47 -06:00
parent 210d0cf7f1
commit 9cd6f35e9d
2 changed files with 28 additions and 55 deletions

View File

@ -318,10 +318,10 @@ var supportedProtocols = map[string]uint16{
}
// 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),
var publicKeyAlgorithms = map[string]x509.PublicKeyAlgorithm{
"rsa": x509.RSA,
"dsa": x509.DSA,
"ecdsa": x509.ECDSA,
}
const automateKey = "automate"