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

    Add user SSL Certificate on pfSense

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    9 Posts 3 Posters 1.1k 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.
    • D
      DasK
      last edited by DasK

      Hello,

      I have a local web server (same LAN as pfSense) and a OpenVPN server setup on pfSense.
      All OpenVPN client can reach the local web server (http://192.168.9.200/ or http://maintenanceapi.afapark.com).

      I recently installed a SSL certificate on this local web server but now when I go on the website I have this 0_1541414615682_2bfadcd8-1bad-4626-a9c7-939bacb9aa60-image.png

      Instead of installing the certificate on each OpenVPN clients do it's possible to install the certificate on pfSense so all users connected to the OpenVPN server have a secure connection to my local web server.

      Thanks for your help

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        What does the web server certificate have to do with OpenVPN?

        If they are connecting to https://maintenanceapi.afapark.com/ and are being served a valid certificate with that name in the CN and or SAN then the browser doesn't care whether they are being connected via OpenVPN or anything else.

        What, exactly, does the browser not like about the certificate?

        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
        • D
          DasK
          last edited by

          This is a certificate created by me with OpenSSL, this website (https://maintenanceapi.afapark.com/) is only available in local it's not a public domain name.
          So my web browser tells me that it's not a trustable certificate and I must install it myself into the windows certificate library

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            Yeah. That has nothing to do with OpenVPN. To do that you will have to install a CA on every client that hits that site to avoid certificate errors.

            Let's Encrypt is your friend: https://www.letsencrypt.org/

            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
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              Your not going to be able to add a rfc1918 as san to a cert you got somewhere..

              I assume afapark.com is you - that site ssl is messed up as well..

              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

              D 1 Reply Last reply Reply Quote 0
              • D
                DasK @johnpoz
                last edited by

                .@johnpoz Yes afapark.com is us, but this is a completely different web server.

                @derelict said in Add user SSL Certificate on pfSense:

                Yeah. That has nothing to do with OpenVPN. To do that you will have to install a CA on every client that hits that site to avoid certificate errors.

                Let's Encrypt is your friend: https://www.letsencrypt.org/

                I thought that by installing the cert directly on pfSense will resolve the problem because all OpenVPN client passes via pfSense to reach this website.

                Do it's possible to use https://www.letsencrypt.org/ for a local webserver, because I already tried and had some error message because my domain name is not public (I mean let's encrypt can't reach maintenanceapi.afapark.com/)

                1 Reply Last reply Reply Quote 0
                • DerelictD
                  Derelict LAYER 8 Netgate
                  last edited by Derelict

                  You will still have to add/trust the CA to all of your clients somehow.

                  SSL is designed to prevent exactly what you are trying to do.

                  Figure out let's encrypt on your web server. If that means spending a dollar a month to register a public domain name, then that's what you'll have to do.

                  You cannot get a domain validated certificate that will be accepted by clients without throwing certificate errors without a publicly-registered domain name.

                  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
                  • D
                    DasK
                    last edited by

                    All rights,

                    Thanks for your help.

                    Have a good day

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

                      afapark.com is registered and public... But even the public facing doesn't do https.. It listens on 443 but all it does it give errors.. Can not even connect via s_client to get any info..

                      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.