fix: rsa 8192 certificate deploy issue #626

This commit is contained in:
Jacky 2024-10-19 11:23:17 +08:00
parent 2a9ac5dbc6
commit ef7be186c4
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D

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.RSA8192,
certcrypto.EC256, certcrypto.EC384:
return true
}