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

    OpenVPN: Client Export Utility blank

    Scheduled Pinned Locked Moved OpenVPN
    17 Posts 7 Posters 6.9k 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.
    • DerelictD
      Derelict LAYER 8 Netgate
      last edited by

      @kpa:

      Yes I understand why the pfSense certificate manager has this limitation. However, nothing prevents you from issuing the server certificate using one CA and all of the client certificates using another CA if you're doing the certificates by hand. In fact, OpenVPN recommends this practice as security measure:

      https://openvpn.net/index.php/open-source/documentation/howto.html#secnotes

      pfSense already enforces ns-cert-type server in the client export, which means client certificates cannot be used in this manner. This method is more preferable in the document you referenced than separate CAs for servers and clients.

      Chattanooga, Tennessee, USA
      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
      Do Not Chat For Help! NO_WAN_EGRESS(TM)

      1 Reply Last reply Reply Quote 0
      • R
        robatwork
        last edited by

        Hmmm well I deleted my certificates and CA, then went from scratch.

        I followed the book accessible on the pfsense portal
        https://portal.pfsense.org/docs/book/certificates/index.html

        created CA, then a new user (with cert), then the OpenVPN wizard using the user I just made. The export is still blank.  The thing is the book describes what each of the steps do, but isn't a "how to" guide. So I've obviously missed something or got a step wrong.

        Is there a step-by-step guide to creating an OpenVPN from scratch including the CA, User, Certs and OpenVPN wizard (or shouldn't I be using the wizard?) ?

        thanks

        1 Reply Last reply Reply Quote 0
        • V
          viragomann
          last edited by

          @robatwork:

          created CA, then a new user (with cert), then the OpenVPN wizard using the user I just made. The export is still blank.

          This all could also be done by the wizard.

          Have you also created a server cert (type: server!) from the same CA and assigned it to the server?

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            yes the wizard walks you through creating a openvpn site and creating a ca for it, and the server cert.  But you need to create a user on your own.  You need to make sure you use the correct CA..

            Go to certificates - click add, create a new one.  Fill in the appropriate fields.. you will then see the cert in cert manager, then go to export util.

            createcert.png
            createcert.png_thumb

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • R
              robatwork
              last edited by

              Thanks again.
              I gave it another go and this time chose Compression: No Preference and this seemed to make a difference - the Client Export is now populated.
              I can't say 100% it was this and not some other setting but all is working now so time to have a play  :)

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                compression has NOTHING to do with a user cert..

                I can tell you for 100% it wasn't that ;)

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 0
                • C
                  cmb
                  last edited by

                  @johnpoz:

                  compression has NOTHING to do with a user cert..

                  I can tell you for 100% it wasn't that ;)

                  Correct. If no users are listed, no users exist with a cert on the same CA as that OpenVPN instance. Has no relation to anything in the OpenVPN server config. Certs were added to users, then they showed up. As it notes there, and as expected.

                  1 Reply Last reply Reply Quote 0
                  • R
                    robatwork
                    last edited by

                    I will create another from scratch when I am done with this project and see if I can document what happened.

                    1 Reply Last reply Reply Quote 0
                    • D
                      divsys
                      last edited by

                      One other thing to watch for: make sure the Server's cert is type:Server and the User's cert is type:User.
                      The Wizard should lead you by the hand to the correct assignments.

                      Seems logical enough, but it seems to pop up from time to time as an issue item.

                      -jfp

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by

                        hehe divsys seems to be more than from time to time ;)  I would say that is the vast majority of user problems is wrong cert..  What I don't get is the wizard as you stated takes you by the hand and its really pretty freaking impossible to mess it up.

                        My guess is they are not using the wizard..  Which makes no sense to me either..

                        Maybe their needs to be a wizard for creating the user certs as well?  So they show up in the export util..

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

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