ssl-config-generator/index.html (34 lines of code) (raw):

<!doctype html> <html> <head> <meta charset="utf-8" /> <title>Redirecting to ssl-config.mozilla.org...</title> </head> <body> <div style="text-align: center;"> <h1>Mozilla SSL Configuration Generator</h1> <div> Redirecting to the updated <a href="https://ssl-config.mozilla.org/">SSL Configuration Generator</a>&hellip; </div> </div> <script> // get the current location var url = new URL(window.location); var redirect = 'https://ssl-config.mozilla.org/'; if (url.search !== '') { var search = url.search; // change to hash search = '#' + search.substr(1); // now replace a bunch of stuff search = search.replace('-', '&server-version=') .replace(/=yes/g, '=true') .replace(/=no/g, '=false') .replace('profile=', 'config=') .replace('openssl=', 'openssl-version='); redirect = 'https://ssl-config.mozilla.org/' + search; } // boop window.location = redirect; </script> </body> </html>