News: This forum is now permanently frozen.
Pages: [1]
Topic: 5 digits voucher  (Read 1859 times)
« on: February 16, 2012, 04:41:00 »
ozlekz *
Posts: 6

hello,

is there any way i could change the long default voucher digits to just 5?

many thanks
« Reply #1 on: November 18, 2012, 18:40:58 »
xhanik *
Posts: 14

Hi,

do you still need a solution???
« Reply #2 on: November 20, 2012, 03:10:32 »
naimcohen *
Posts: 7

Hi, I'm looking into the same thing so if you have a solution could you post it please?

Thanks
« Reply #3 on: November 24, 2012, 14:07:34 »
xhanik *
Posts: 14

This is from my post from March 17, 2011:

-----------------------------------------------------------------------------------------------------------------------------------------------
Yes I have...

But first be informed that doing the change will cause your existing voucher-rolls to be not valid anymore....


You need to delete the old ones and create new once....


Be carefullllll - use it on you own risk....

-------------------------------------------------------------------------------------------------
1) Goto: http://<your-m0n0wall-ip>/exec.php

2) Enter     /usr/local/bin/voucher -g 40        as Command and hit execute.

You'll get something similar to this:

$ /usr/local/bin/voucher -g 40
-----BEGIN RSA PRIVATE KEY-----
asdfghjkhgfdsfghjhgfdsdfghjhgfdfghjhgfdsfgh
-----END RSA PRIVATE KEY-----

-----BEGIN PUBLIC KEY-----
asdfghjkhgfdsfghjhgfdsdfghjhgfdfghjhgfdsfgh+lAgMBAAE=
-----END PUBLIC KEY-----

3) Copy paste both keys into the voucher configuration screen (best to save them first into a document as the key changes everytime you generate them).

Different key sizes can be specified of course.
-------------------------------------------------------------------------------------------------

I got this from same post on this forum (Oktober 2007) and it worked for me very fine... I also removed the lower capital letters from the Captive Portal - Vouchers - Character set...
Now I have vouchers with lenght of 8....

BR
-------------------------------------------------------------------------------------------------

let me know if you manage to do or need support...

 Wink
« Reply #4 on: November 24, 2012, 14:23:47 »
naimcohen *
Posts: 7

Hi

I'll give that a try,

Just wondering where in that command does it limit it to 5? I ask so incase at a later stage I need to change the limit to another number I can figure it out instead of asking again

Thanks!
« Reply #5 on: November 24, 2012, 15:51:32 »
xhanik *
Posts: 14

Hi,

to be honest, I don't know...

With the 40 I got vouchers with lenght of 8....

Give it a try....

 Roll Eyes

BR
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines