Shortening voucher length in 2.7.2
-
Hello
I know that this is something that make a lot of talking.
The goal : limit the voucher code lenght to 6 characters
I have find a method that work for pfsense 2.6 but since I move to 2.7.2 it doesn't work anymore and despite using the same keys and settings I always get errors in the output file and no voucher code at all.
If anyone has found a way to achive that I will be glad to ear from her/him.
Thanks for your help
Pierre -
Hello,
I had been having the same issues. I followed instructions per the older discussion threads but the methods seem outdated.
Which essentially allowed the keys to be changed through the command portal within PfSense
the commands were as follows in respective order
openssl genrsa 30 > key.private
openssl rsa - pubout <key.private> key.publiccat key.public
cat key.privatei tried these but no luck.
Then i found this video tutorial. Seems like alot of work for something that ought to be integrated within PfSense but im sure they have good reasons.
https://www.youtube.com/watch?v=he0kPrqOZY0
Update: Okay, i attempted to follow the instructions as per the video
Findings with help of ChatGPT - We could have also followed the prompts within PfSense cmd however the issue is arising from OpenSSL
It no longer is permitting 32bits codes for security measures. soo... i guess we can no longer do shorter codes?
@GertjanError on my terminal and PfSense: error:04081078:rsa routines:rsa_builtin_keygen:key size too small:crypto/rsa/rsa_gen.c:78: