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

    PfSense to OpenVPN server - nowhere to specify a server cert

    OpenVPN
    5
    14
    3.3k
    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.
    • I
      ilium007
      last edited by

      Hi - Every other OpenVPN client I have worked with allows me to specify a server cert. Although I can specify a server cert in the pfSense certificate screens, there is nowhere to specify this cert in the OpenVPN client setup screens.

      I see this in the OpenVPN logs:

      Aug 22 20:18:31 	openvpn[51948]: WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
      

      Any help would be appreciated.

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

        Someone correct me if I'm wrong, but I believe that error is related to not having a "Peer Certificate Revocation List" configured on the server side.

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by

          @ilium007:

          … there is nowhere to specify this cert in the OpenVPN client setup screens....

          Any help would be appreciated.

          Edit your Client Settings => Cryptographic Settings => Client Certificate

          1 Reply Last reply Reply Quote 0
          • I
            ilium007
            last edited by

            @Satras:

            @ilium007:

            … there is nowhere to specify this cert in the OpenVPN client setup screens....

            Any help would be appreciated.

            Edit your Client Settings => Cryptographic Settings => Client Certificate

            Thats the client certificate, yes. I want to be able to specify the server certificate. When I have configured any other OpenVPN setup I generate CA certs, Diffie Hellman key, server certs and the client certs.

            1 Reply Last reply Reply Quote 0
            • GruensFroeschliG
              GruensFroeschli
              last edited by

              System –> Cert Manager --> Certificates
              press + and import your already existing certificate.

              We do what we must, because we can.

              Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

              1 Reply Last reply Reply Quote 0
              • I
                ilium007
                last edited by

                @GruensFroeschli:

                System –> Cert Manager --> Certificates
                press + and import your already existing certificate.

                Yes, understand that. I have imported both the client and server certs. There is nowhere in the OpenVPN config to specify the server cert.

                1 Reply Last reply Reply Quote 0
                • GruensFroeschliG
                  GruensFroeschli
                  last edited by

                  Ah now i see where you're coming from.
                  But you misunderstand. You don't add the server certificate on the client.
                  Instead you configure the client to verify that the server is actually a server.
                  If you read the link which is provided in the warning you can see that you could extend your configuration with some options. (on pfsense the "Advanced configuration" field)
                  Scroll down a bit here: http://openvpn.net/index.php/open-source/documentation/howto.html#pki to see in the table "Key Files" what is required where.

                  We do what we must, because we can.

                  Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                  1 Reply Last reply Reply Quote 0
                  • I
                    ilium007
                    last edited by

                    @GruensFroeschli:

                    Ah now i see where you're coming from.
                    But you misunderstand. You don't add the server certificate on the client.
                    Instead you configure the client to verify that the server is actually a server.
                    If you read the link which is provided in the warning you can see that you could extend your configuration with some options. (on pfsense the "Advanced configuration" field)
                    Scroll down a bit here: http://openvpn.net/index.php/open-source/documentation/howto.html#pki to see what is required where.

                    I'll have a read, but in my experience every openvpn client I have configured takes in a server cert as shown below in a Viscosity screen shot of an openvpn client I have used for the past 4 years:

                    In this screenshot cert.crt is the server certificate.

                    1 Reply Last reply Reply Quote 0
                    • GruensFroeschliG
                      GruensFroeschli
                      last edited by

                      That's not the server certificate but the certificate of the CA which created the keys/certs for both the server and clients.

                      You can export the certificate of the CA of the machine where you created the server/client files and import it on the client.

                      Afterwards you can select this cert in the "Peer Certificate Authority" dropdown.

                      We do what we must, because we can.

                      Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                      1 Reply Last reply Reply Quote 0
                      • I
                        ilium007
                        last edited by

                        @GruensFroeschli:

                        That's not the server certificate but the certificate of the CA which created the keys/certs for both the server and clients.

                        No, that would be the ca.crt also pictured.

                        1 Reply Last reply Reply Quote 0
                        • GruensFroeschliG
                          GruensFroeschli
                          last edited by

                          Well then in the screenshot something is missing and would not be able to work.

                          the "CA:" field is for the CA certificate.
                          the "Cert:" field is for the client certificate
                          the "Key:" field is for the client key.

                          We do what we must, because we can.

                          Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                          1 Reply Last reply Reply Quote 0
                          • I
                            ilium007
                            last edited by

                            @GruensFroeschli:

                            Well then in the screenshot something is missing and would not be able to work.

                            the "CA:" field is for the CA certificate.
                            the "Cert:" field is for the client certificate
                            the "Key:" field is for the client key.

                            Yes, my apologies. It is the client cert as you have pointed out.

                            I'll keep messing with the pfSense openvpn client config. I should have enough for it to work but I can;t for the life of me get a connection to come up.

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

                              "I'll keep messing with the pfSense openvpn client config"

                              What are you messing with?  Did you just install the client export package, and then download the viscosity bundle and you should good to go.

                              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.7.2, 24.11

                              1 Reply Last reply Reply Quote 0
                              • I
                                ilium007
                                last edited by

                                No. The pfSense box is the client (I already have it running just fine as a server using the method you describe).

                                I have imported the external CA certs and client cert etc but the tunnel won't establish. I'll pull some logs together and post here.

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