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

Question regarding Acme and DDNS

Scheduled Pinned Locked Moved ACME
19 Posts 3 Posters 2.2k 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.
  • J
    johnpoz LAYER 8 Global Moderator @gregeeh
    last edited by johnpoz Dec 12, 2023, 4:44 AM Dec 12, 2023, 4:41 AM

    @gregeeh all you want is to access the webgui without your browser complaining?

    Just run your own CA on pfsense and set your browser to trust it..

    https://forum.netgate.com/post/831783

    You can use whatever fqdn you want, even the home.arpa and you can add san for just your rfc1918 IP as well.. I think its a much better solution for web gui of something that only you will be accessing, etc.

    And you can use the ca to create certs for any other webgui things like printers, switches, unifi controller, nas, etc.

    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

    G 1 Reply Last reply Dec 12, 2023, 5:39 AM Reply Quote 0
    • G
      gregeeh @johnpoz
      last edited by Dec 12, 2023, 5:39 AM

      @johnpoz said in Question regarding Acme and DDNS:

      Just run your own CA on pfsense and set your browser to trust it..

      Thank you, I will give that a try. Looks much easier.

      Greg

      PfSense running on Qotom mini PC
      CPU N3150, 2 GB memory, 32 GB SSD & 2 Realtek Gb Ethernet ports.
      UniFi AC-Lite access point

      J 1 Reply Last reply Dec 12, 2023, 12:20 PM Reply Quote 0
      • J
        johnpoz LAYER 8 Global Moderator @gregeeh
        last edited by johnpoz Dec 12, 2023, 12:24 PM Dec 12, 2023, 12:20 PM

        @gregeeh if you have any questions just ask been doing it for years.. My gui cert is still good til 27, I have created it 2017.. This was before the browsers started complaining about long life certs..

        I do need to get around to changing it, as want to completely move away from the local.lan domain have been using and use home.arpa - I have moved over some of my certs. But just haven't pulled the trigger on the webgui as of yet. Its working - not a lot of hurry to change it ;)

        I have changed it on my unifi and nas because those certs were expiring..

        certs.jpg

        Here is the cert on the webgui of pfsense, you can see it has multiple names I can use and also the IP, so even when accessed via IP, say my local dns was down.. Cert is still trusted.

        webgui.jpg

        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

        G S 2 Replies Last reply Dec 13, 2023, 2:39 AM Reply Quote 1
        • G
          gregeeh @johnpoz
          last edited by Dec 13, 2023, 2:39 AM

          @johnpoz - Followed all your steps. Imported into Firefox and all good :)

          As for Chrome, imported into Trusted Root Certification Authorities as Personal did not work. Hope this was correct?

          So, to create certificates for say my NAS and Unifi Controller, I would just repeat those steps making a CA and CERT for each. Correct?

          Thanks again, for all your help. Much easier then using Acme Certificates.

          Greg

          PfSense running on Qotom mini PC
          CPU N3150, 2 GB memory, 32 GB SSD & 2 Realtek Gb Ethernet ports.
          UniFi AC-Lite access point

          S J 3 Replies Last reply Dec 13, 2023, 6:24 AM Reply Quote 0
          • S
            SwissSteph @johnpoz
            last edited by Dec 13, 2023, 6:23 AM

            @johnpoz said in Question regarding Acme and DDNS:

            I do need to get around to changing it, as want to completely move away from the local.lan domain have been using and use home.arpa - I have moved over some of my certs. But just haven't pulled the trigger on the webgui as of yet. Its working - not a lot of hurry to change it ;)

            Hello johnpoz

            I have a question following your sentence. Why do you want to change this?

            I copied your explanations (old but still valid) where you had used "local.lan" ... and now I see your message and I would very much like to understand the meaning of your remark.

            I'm learning a lot here, THANK YOU!!! 😊

            I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
            ... And now I'm living with a Netgate 8200
            ... And sorry for my bad English...

            J 1 Reply Last reply Dec 13, 2023, 6:32 AM Reply Quote 0
            • S
              SwissSteph @gregeeh
              last edited by SwissSteph Dec 13, 2023, 6:27 AM Dec 13, 2023, 6:24 AM

              @gregeeh said in Question regarding Acme and DDNS:

              @johnpoz - Followed all your steps. Imported into Firefox and all good :)

              As for Chrome, imported into Trusted Root Certification Authorities as Personal did not work. Hope this was correct?

              So, to create certificates for say my NAS and Unifi Controller, I would just repeat those steps making a CA and CERT for each. Correct?

              Thanks again, for all your help. Much easier then using Acme Certificates.

              Greg

              I have the same question because I just can't get it. For access to my Pfsense it's all OK, but not for my "UCK_Gen2-Plus"!? Does it take time for the certificate to propagate?

              I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
              ... And now I'm living with a Netgate 8200
              ... And sorry for my bad English...

              J 1 Reply Last reply Dec 13, 2023, 6:36 AM Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator @gregeeh
                last edited by Dec 13, 2023, 6:28 AM

                @gregeeh said in Question regarding Acme and DDNS:

                making a CA and CERT for each. Correct?

                No you only need the 1 CA, you can now create certs with that ca for any of your devices. And your browser will use them because it trusts the CA.

                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 1
                • J
                  johnpoz LAYER 8 Global Moderator @SwissSteph
                  last edited by Dec 13, 2023, 6:32 AM

                  @SwissSteph said in Question regarding Acme and DDNS:

                  understand the meaning of your remark

                  Oh I don't actually "need" too - but home.arpa is the new recommended domain to use locally..

                  https://datatracker.ietf.org/doc/html/rfc8375.html
                  Special-Use Domain 'home.arpa.'

                  I do believe pfsense now defaults to that.. There is no "need" to move away from my local.lan domain I could continue to use it - but there is no reason I shouldn't use the home.arpa so at some point I will make sure everything locally is using it..

                  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

                  S 1 Reply Last reply Dec 13, 2023, 6:36 AM Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator @SwissSteph
                    last edited by johnpoz Dec 13, 2023, 6:37 AM Dec 13, 2023, 6:36 AM

                    @SwissSteph said in Question regarding Acme and DDNS:

                    but not for my "UCK_Gen2-Plus"

                    The controller is a pita to get to use new certs.. I have no idea why they don't make it simple to change out via the gui, like my nas was, or even my printer. There are instructions out there to do it..

                    Here are my notes for changing it on the unifi controller.

                    From the CA, have these files available:ca.cert.pem (CA cert)server.domain.net.cert.pem (server cert)server.domain.net.key.pem (server key)
                    
                    copy them to the unifi controller.
                    
                    delete the old keystore and restart unifi to create an empty keystore:sudo rm /var/lib/unifi/keystore sudo service unifi restart
                    
                    Create a central file to upload to the keystore:openssl pkcs12 -export -in server.domain.net.cert.pem -inkey server.domain.net.key.pem -certfile ca.cert.pem -out unifi.p12 -name unifi -password pass:aircontrolenterprise
                    
                    This gives you the file unifi.p12.
                    
                    Now import this into the unifi keystore:keytool -importkeystore -srckeystore unifi.p12 -srcstoretype PKCS12 -srcstorepass aircontrolenterprise -destkeystore /usr/lib/unifi/data/keystore -storepass aircontrolenterprise
                    
                    Restart unifi sudo service unifi restart
                    
                    And we're good to go.
                    
                    more info
                    keytool -list -keystore data/keystore -v
                    
                    keytool error: java.io.IOException: keystore password was incorrect
                    when using Openssl to export, add -legacy so openssl v3 will revert back to legacy mode, and then keytool was able to import.
                    openssl pkcs12 -export -legacy
                    

                    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

                    S 1 Reply Last reply Dec 13, 2023, 6:38 AM Reply Quote 0
                    • S
                      SwissSteph @johnpoz
                      last edited by Dec 13, 2023, 6:36 AM

                      @johnpoz said in Question regarding Acme and DDNS:

                      @SwissSteph said in Question regarding Acme and DDNS:

                      understand the meaning of your remark

                      Oh I don't actually "need" too - but home.arpa is the new recommended domain to use locally..

                      https://datatracker.ietf.org/doc/html/rfc8375.html
                      Special-Use Domain 'home.arpa.'

                      I do believe pfsense now defaults to that.. There is no "need" to move away from my local.lan domain I could continue to use it - but there is no reason I shouldn't use the home.arpa so at some point I will make sure everything locally is using it..

                      Thank you for your reply with the link 👍 😊

                      I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
                      ... And now I'm living with a Netgate 8200
                      ... And sorry for my bad English...

                      1 Reply Last reply Reply Quote 0
                      • S
                        SwissSteph @johnpoz
                        last edited by Dec 13, 2023, 6:38 AM

                        @johnpoz said in Question regarding Acme and DDNS:

                        @SwissSteph said in Question regarding Acme and DDNS:

                        but not for my "UCK_Gen2-Plus"

                        The controller is a pita to get to use new certs.. I have no idea why they don't make it simple to change out via the gui, like my nas was, or even my printer. There are instructions out there to do it..

                        Here are my notes for changing it on the unifi controller.

                        From the CA, have these files available:ca.cert.pem (CA cert)server.domain.net.cert.pem (server cert)server.domain.net.key.pem (server key)
                        
                        copy them to the unifi controller.
                        
                        delete the old keystore and restart unifi to create an empty keystore:sudo rm /var/lib/unifi/keystore sudo service unifi restart
                        
                        Create a central file to upload to the keystore:openssl pkcs12 -export -in server.domain.net.cert.pem -inkey server.domain.net.key.pem -certfile ca.cert.pem -out unifi.p12 -name unifi -password pass:aircontrolenterprise
                        
                        This gives you the file unifi.p12.
                        
                        Now import this into the unifi keystore:keytool -importkeystore -srckeystore unifi.p12 -srcstoretype PKCS12 -srcstorepass aircontrolenterprise -destkeystore /usr/lib/unifi/data/keystore -storepass aircontrolenterprise
                        
                        Restart unifi sudo service unifi restart
                        
                        And we're good to go.
                        
                        more info
                        keytool -list -keystore data/keystore -v
                        
                        keytool error: java.io.IOException: keystore password was incorrect
                        when using Openssl to export, add -legacy so openssl v3 will revert back to legacy mode, and then keytool was able to import.
                        openssl pkcs12 -export -legacy
                        

                        Thanks for your explanation, it's going to go beyond my skills and I don't want to break anything on this unify controller ... it's complicated enough (for me) with Unify when there's a new camera, for example, and it's not seen ....

                        I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
                        ... And now I'm living with a Netgate 8200
                        ... And sorry for my bad English...

                        1 Reply Last reply Reply Quote 0
                        • J
                          johnpoz LAYER 8 Global Moderator @gregeeh
                          last edited by Dec 13, 2023, 6:42 AM

                          @gregeeh said in Question regarding Acme and DDNS:

                          Hope this was correct?

                          Sure as long as your browser trusts the CA is all that matters.

                          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 1
                          19 out of 19
                          • First post
                            19/19
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                            This community forum collects and processes your personal information.
                            consent.not_received