pfSense Gold Subscription

Author Topic: Voucher length  (Read 2476 times)

0 Members and 1 Guest are viewing this topic.

Offline taktje

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +0/-0
    • View Profile
Voucher length
« 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????? Step by step.

Thx

Offline wallabybob

  • Hero Member
  • *****
  • Posts: 5262
  • Karma: +0/-0
    • View Profile
Re: Voucher length
« 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?

Offline Mathiew

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Voucher length
« 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 »

Offline taktje

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +0/-0
    • View Profile
Re: Voucher length
« 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

Offline Mathiew

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Voucher length
« 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 »

Offline taktje

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +0/-0
    • View Profile
Re: Voucher length
« Reply #5 on: May 22, 2012, 11:01:55 am »
tried that still 20 characters.

Offline Mathiew

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Voucher length
« Reply #6 on: May 22, 2012, 12:54:17 pm »
20 chars ouch... Are you sure your key is only 31 bits long ?

Offline taktje

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +0/-0
    • View Profile
Re: Voucher length
« 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!!!

Offline wallabybob

  • Hero Member
  • *****
  • Posts: 5262
  • Karma: +0/-0
    • View Profile
Re: Voucher length
« 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: [Select]
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.

Offline taktje

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +0/-0
    • View Profile
Re: Voucher length
« 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