证书增加crl参数的输入,并增加crl的格式校验

(cherry picked from commit ae283564cb)
This commit is contained in:
duandongmei
2019-01-19 08:56:37 +00:00
committed by 王鑫
parent aa5eccf995
commit 7e1875b384
4 changed files with 30 additions and 12 deletions

View File

@@ -208,6 +208,14 @@ jQuery.validator.addMethod("httpCheck",function(value, element) {
}
return false;
});
//证书crl 格式校验
jQuery.validator.addMethod("crlCheck",function(value, element) {
var regexp=/^[hH][tT][tT][pP]:\/\/(\S+\.)+\S{2,}(.)crl$/;
if(this.optional(element)||regexp.test(value)){
return true;
}
return false;
});
/*协议端口校验
* 规则TCP,UDP协议端口可以不为0
* 其他协议端口必须为0