Feature #16680
closedCaptive Portal Adjustable Voucher Lengths
0%
Description
We had a customer request to be able to easily set a desired length for the vouchers in the GUI.
When high security isn't an issue, a shorter voucher length makes it easier for patrons to type in the voucher without leaving the connection completely open.
Some workarounds exist on the forum which rely on old versions of pfSense with older versions of OpenSSL.
Updated by Jim Pingle 18 days ago
- Status changed from New to Rejected
The voucher keys are already weak for security, lowering it would make the codes predictable. I am against adding options to make it that weak in the GUI.
If someone wants to generate a shorter key by hand, they can use the code that the GUI uses now to do so, just change the key size in the function (e.g. from 64 to 31):
source:src/usr/local/www/services_captiveportal_vouchers.php#L45
They could edit/patch the source and use the GUI button, or run that code manually and copy/paste the resulting keys.