Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Voucher length

    Scheduled Pinned Locked Moved Captive Portal
    10 Posts 3 Posters 7.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      taktje
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • M
          Mathiew
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • T
            taktje
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • M
              Mathiew
              last edited by

              Try this :

              of Roll Bits 6

              of Ticket Bits 16

              of Checksum Bits 6

              Magic Number : type 4 digits

              1 Reply Last reply Reply Quote 0
              • T
                taktje
                last edited by

                tried that still 20 characters.

                1 Reply Last reply Reply Quote 0
                • M
                  Mathiew
                  last edited by

                  20 chars ouch… Are you sure your key is only 31 bits long ?

                  1 Reply Last reply Reply Quote 0
                  • T
                    taktje
                    last edited by

                    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!!!

                    1 Reply Last reply Reply Quote 0
                    • W
                      wallabybob
                      last edited by

                      @taktje:

                      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```
                      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.
                      1 Reply Last reply Reply Quote 0
                      • T
                        taktje
                        last edited by

                        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

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.