优化SSL证书三种管理模式
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-07 15:49:25 +08:00
1 parent cfe4401b70
commit 6ad6f449ca
10 files changed
+157 -15

No files matched your search

+3
View File
@@ -171,6 +171,9 @@ func validateSSL(ssl SSLConfig) error {
if !isControlledRelativePath(ssl.DefaultDirectory) {
return ErrInvalidSSL
}
if ssl.Management != "" && !ValidSSLManagement(ssl.Management) {
return ErrInvalidSSL
}
if ssl.Challenge != "" && ssl.Challenge != SSLChallengeHTTP && ssl.Challenge != SSLChallengeDNS {
return ErrInvalidSSL
}