Skip to content

Commit

Permalink
Set SECLEVEL=0 for openssl 3 to support Old config
Browse files Browse the repository at this point in the history
github: closes #188
  • Loading branch information
gstrauss committed Nov 11, 2024
1 parent 66667fa commit d01b687
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/js/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ export default async function () {
} else {
ciphers = ciphers;
}
if (ciphers.length && ciphers[0] === '@SECLEVEL=0') ciphers.shift();
if (configs[server].usesOpenssl !== false && minver('3.0.0', form['openssl'].value)) {
// set SECLEVEL=0 via cipher string to support TLSv1-1.1 "old" with OpenSSL 3.x
if (protocols.includes('TLSv1.1')) {
if (ciphers[0] !== '@SECLEVEL=0') ciphers.unshift('@SECLEVEL=0');
}
}

const state = {
form: {
Expand Down

0 comments on commit d01b687

Please sign in to comment.