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

    OpenVPN generates error "Private Key Password"

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 2 Posters 228 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
      TSO2
      last edited by

      OpenVPN generates error "Private Key Password" required
      There is no password, It has worked fine for years, then suddenly this morning I get this error when trying to login
      OpenVPN Client v2.6x
      pfSense 2.7.2
      Can anyone help please, I have spent hours trying to figure it out

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

        @TSO2 said in OpenVPN generates error "Private Key Password":

        OpenVPN generates error "Private Key Password" required

        I guess, that you're talking about a client software, but not the OpenVPN in pfSense.
        So probably the private key is password protected.

        T 1 Reply Last reply Reply Quote 0
        • T
          TSO2 @viragomann
          last edited by

          @viragomann
          Yes, Its the client that throws the error,
          However there is no password, there never was
          It has been working for years without change without the password

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

            @TSO2
            Which Client?
            Which OS?

            What does the certificate line in the client config looks like?

            T 1 Reply Last reply Reply Quote 0
            • T
              TSO2 @viragomann
              last edited by

              @viragomann
              OpenVPN 2.6.7 - OpenVPN GUI v 11.45.0.0
              Windows 11

              Not sure what you mean certificate line
              pkcs12 XXXX.p12
              tls-auth XXXX.key 1

              XXXX is the file name

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

                @TSO2
                The private key is inside the .p12 file. You can try to install it in Windows to see if it is password protected. If so Windows will request it.

                But it's also possible that you have updated the client software and the new one works only with private key password?

                If you need a .p12 with a password can export it from the pfSense certificate manager.
                The password can be stored in the OpenVPN GUI, so it is not requested any further.
                Also you can export a new config archive from the client export utility. Here you can also select to use the Windows certificate store. Then you only need to password (if set), when you import it. But this require a new config file as well.

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