fix: wildcard certificate challenge method not present

This commit is contained in:
Jacky 2024-02-14 17:40:04 +08:00
parent f727218a28
commit 97ec26331b
4 changed files with 46 additions and 4 deletions

View file

@ -7,7 +7,7 @@ import (
func autoCertKeyType(fl val.FieldLevel) bool {
switch certcrypto.KeyType(fl.Field().String()) {
case certcrypto.RSA2048, certcrypto.RSA3072, certcrypto.RSA4096,
case "", certcrypto.RSA2048, certcrypto.RSA3072, certcrypto.RSA4096,
certcrypto.EC256, certcrypto.EC384:
return true
}