Welcome, Guest. Please login or register.
Did you miss your activation email?
+  pfSense Forum
|-+  pfSense English Support» Captive Portal» Voucher length
Username:
Password:
 
 

Pages: [1]   Go Down
  Print  
Author Topic: Voucher length  (Read 1271 times)
0 Members and 1 Guest are viewing this topic.
taktje
Jr. Member
**
Offline Offline

Posts: 51


View Profile
« on: May 22, 2012, 04:37:14 am »

Hello all,

I'm trying to get my voucher lenght to 6 or 7 characters.

I've searched the forum and there is said:" create a shorter private key!!!!!!!"


"openssl genrsa 31 > key.private"

The vouchers is now with  7 characters length!


How do i create this?

Can someone please help me?Huh? Step by step.

Thx
Logged
wallabybob
Hero Member
*****
Offline Offline

Posts: 4808


View Profile
« Reply #1 on: May 22, 2012, 06:33:00 am »

Did you read both pages of http://forum.pfsense.org/index.php/topic,41658.0.html? (to reply 20)

If so, where do you get lost?
Logged
Mathiew
Newbie
*
Offline Offline

Posts: 12


View Profile
« Reply #2 on: May 22, 2012, 06:43:01 am »

1. openssl genrsa -out private.key 31

2. openssl rsa -in private.key -out public.key -pubout -outform PEM

You copy-past each  result key in pfsense voucher tab.
« Last Edit: May 22, 2012, 06:45:49 am by Mathiew » Logged
taktje
Jr. Member
**
Offline Offline

Posts: 51


View Profile
« Reply #3 on: May 22, 2012, 09:12:22 am »

yes i did read all of that.
i got lost how to make the shorter key.
do i need another program to make the key?
my hotspot is running great but the voucher codes are 20 characters.
that irritates my guests
Logged
Mathiew
Newbie
*
Offline Offline

Posts: 12


View Profile
« Reply #4 on: May 22, 2012, 09:42:21 am »

Try this :

# of Roll Bits   6

# of Ticket Bits    16

# of Checksum Bits   6

Magic Number : type 4 digits   
« Last Edit: May 22, 2012, 09:43:52 am by Mathiew » Logged
taktje
Jr. Member
**
Offline Offline

Posts: 51


View Profile
« Reply #5 on: May 22, 2012, 11:01:55 am »

tried that still 20 characters.
Logged
Mathiew
Newbie
*
Offline Offline

Posts: 12


View Profile
« Reply #6 on: May 22, 2012, 12:54:17 pm »

20 chars ouch... Are you sure your key is only 31 bits long ?
Logged
taktje
Jr. Member
**
Offline Offline

Posts: 51


View Profile
« Reply #7 on: May 22, 2012, 04:30:10 pm »

That's the problem.
I think i have the standerd key of 32 bit.
I need to get the 31 bit key.
So how do i get a 31 bit key?

Thx for helping me!!!
Logged
wallabybob
Hero Member
*****
Offline Offline

Posts: 4808


View Profile
« Reply #8 on: May 22, 2012, 04:53:33 pm »

So how do i get a 31 bit key?
That brings up back to your initial post. A challenge of replying to forum entries is to guess the appropriate level of detail for new participants.

I guess you don't know what to do with
Code:
openssl genrsa 31 > key.private

It is a pfSense shell command to write a 31 bit key into the file key.private. Do you know how to execute a pfSense shell command?

If I have guessed incorrectly then you will need to explain in more detail the difficulty you are having in following the instructions in the post I previously linked to.
Logged
taktje
Jr. Member
**
Offline Offline

Posts: 51


View Profile
« Reply #9 on: May 23, 2012, 03:18:15 am »

Thx you all for the help.

I've got it working.
I create a 31 bit key with openssl

I found a youtube tutorial: http://www.youtube.com/watch?v=aO0KxzigeLY&feature=endscreen&NR=1

Part 1 and 2 did it for me. i copied:


1. openssl genrsa -out private.key 31

2. openssl rsa -in private.key -out public.key -pubout -outform PEM


It took me a while to figure this out but it works.


I only copied and pasted the key's and left everything as it was.

Result: 6 chars

Thx
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

 

Page created in 0.026 seconds with 19 queries.