diff options
author | Gene Wood <gene_wood@cementhorizon.com> | 2015-04-13 12:36:58 -0700 |
---|---|---|
committer | Gene Wood <gene_wood@cementhorizon.com> | 2015-04-13 12:36:58 -0700 |
commit | c5f8201c1e10b305cda954a15d76be270feebe40 (patch) | |
tree | 2f9dc5279455cbed232f955a47a94a24e92745e0 | |
parent | 7abf5b3d40c6f90164db7afdfa22f68fd452fb91 (diff) | |
download | server-side-tls-c5f8201c1e10b305cda954a15d76be270feebe40.zip server-side-tls-c5f8201c1e10b305cda954a15d76be270feebe40.tar.gz server-side-tls-c5f8201c1e10b305cda954a15d76be270feebe40.tar.bz2 |
Adding comment about the different semver functions
Adding detail to message about modern profile being unavailable
-rw-r--r-- | ssl-config-generator/index.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl-config-generator/index.html b/ssl-config-generator/index.html index 9f5d9d1..4bb3c11 100644 --- a/ssl-config-generator/index.html +++ b/ssl-config-generator/index.html @@ -31,6 +31,7 @@ <script> // https://gist.github.com/cowboy/566233 var isSemVer=(function(){var a=/^(<|>|[=!<>]=)?\s*(\d+(?:\.\d+){0,2})([a-z][a-z0-9\-]*)?$/i;function b(e,c){var d=(e+"").match(a);return d?(c?(d[1]||"=="):"")+'"'+(d[2]+".0.0").match(/\d+(?:\.\d+){0,2}/)[0].replace(/(?:^|\.)(\d+)/g,function(g,f){return Array(9-f.length).join(0)+f;})+(d[3]||"~")+'"':(c?"==0":1);}return function(e){e=b(e);for(var c,d=1;c=arguments[d++];){if(!(new Function("return "+e+b(c,1)))()){return false;}}return true;};})(); + // isSemVer says "1.0.1 > 1.0.1e" and isOpenSSLSemVer says "1.0.1 < 1.0.1e". isOpenSSLSemVer is needed to accommodate OpenSSL's version grammar var isOpenSSLSemVer=(function(){var a=/^(<|>|[=!<>]=)?\s*(\d+(?:\.\d+){0,2})([a-z][a-z0-9\-]*)?$/i;function b(e,c){var d=(e+"").match(a);return d?(c?(d[1]||"=="):"")+'"'+(d[2]+".0.0").match(/\d+(?:\.\d+){0,2}/)[0].replace(/(?:^|\.)(\d+)/g,function(g,f){return Array(9-f.length).join(0)+f;})+(d[3]||"")+'"':(c?"==0":1);}return function(e){e=b(e);for(var c,d=1;c=arguments[d++];){if(!(new Function("return "+e+b(c,1)))()){return false;}}return true;};})(); </script> <script> @@ -220,7 +221,7 @@ frontend ft_test $("#security-profile-list input#intermediate").prop( "checked", true ); data.securityProfile = "intermediate"; $("#security-profile-list input#modern").prop("disabled", true); - $("#security-profile-list label[for=modern]").attr("title", "Modern profile is not possible with OpenSSL <1.0.1"); + $("#security-profile-list label[for=modern]").attr("title", "Modern profile is not available. TLS v1.1 and v1.2 support is only present in OpenSSL 1.0.1 and newer"); } else if (isOpenSSLSemVer(data.opensslVersion, ">=1.0.1") && $("#security-profile-list input#modern").prop("disabled") == true) { $("#security-profile-list input#modern").prop("disabled", false); $("#security-profile-list label[for=modern]").removeAttr("title"); |