Include SECLEVEL and STRENGTH as part of ssl-cipher list validation (#10754)
This commit is contained in:
parent
05d68a1512
commit
1bc745619d
3 changed files with 29 additions and 1 deletions
|
|
@ -32,7 +32,8 @@ const (
|
|||
)
|
||||
|
||||
// Should cover something like "ALL:!aNULL:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP"
|
||||
var regexValidSSLCipher = regexp.MustCompile(`^[A-Za-z0-9!:+\-]*$`)
|
||||
// (?:@STRENGTH) is included twice so it can appear before or after @SECLEVEL=n
|
||||
var regexValidSSLCipher = regexp.MustCompile(`^(?:(?:[A-Za-z0-9!:+\-])*(?:@STRENGTH)*(?:@SECLEVEL=[0-5])*(?:@STRENGTH)*)*$`)
|
||||
|
||||
var sslCipherAnnotations = parser.Annotation{
|
||||
Group: "backend",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue