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

    Renewal of certificates

    Scheduled Pinned Locked Moved ACME
    12 Posts 3 Posters 1.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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @FOOLiSH86
      last edited by

      @foolish86 Give us a few minutes to comb through the vast amount of details and information you have given here.. It could take a while for our crystal balls to warm up to figure out what you might have done wrong ;)

      Kidding aside - nobody is going to be able to help you without any even hint to what you have setup, did it work before, and renewal is just not working, etc. 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

      F 1 Reply Last reply Reply Quote 0
      • F
        FOOLiSH86
        last edited by

        😁 😁 😁

        when lest changed the CA certificate does not work.
        I loaded R3,X1,X2 in the authorities

        1 Reply Last reply Reply Quote 0
        • F
          FOOLiSH86 @johnpoz
          last edited by

          @johnpoz
          mynamedns
          Renewing certificate
          account: MY
          server: letsencrypt-production-2

          /usr/local/pkg/acme/acme.sh --issue --domain 'mynamedns.duckdns.org' --dns 'dns_duckdns' --home '/tmp/acme/mynamedns/' --accountconf '/tmp/acme/mynamedns/accountconf.conf' --force --reloadCmd '/tmp/acme/mynamedns/reloadcmd.sh' --log-level 3 --log '/tmp/acme/mynamedns/acme_issuecert.log'
          Array
          (
          [path] => /etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin/
          [PATH] => /etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin/
          [DuckDNS_Token] => *MYTOKEN
          )
          [Mon Oct 11 16:29:16 CEST 2021] Using CA: https://acme-v02.api.letsencrypt.org/directory
          [Mon Oct 11 16:29:16 CEST 2021] Single domain='mynamedns.duckdns.org'
          [Mon Oct 11 16:29:16 CEST 2021] Getting domain auth token for each domain
          [Mon Oct 11 16:29:21 CEST 2021] Getting webroot for domain='mynamedns.duckdns.org'
          [Mon Oct 11 16:29:21 CEST 2021] Adding txt value: MY VALUE for domain: _acme-challenge.mynamedns.duckdns.org
          [Mon Oct 11 16:29:21 CEST 2021] Trying to add TXT record
          [: : bad number
          [: : bad number
          [Mon Oct 11 16:29:22 CEST 2021] Errors happened during adding the TXT record, response=KO
          [Mon Oct 11 16:29:22 CEST 2021] Error add txt for domain:_acme-challenge.mynamedns.duckdns.org
          [Mon Oct 11 16:29:22 CEST 2021] Please check log file for more details: /tmp/acme/mynamedns/acme_issuecert.log

          THIS LOG when i click Issue/Renew on PFsense

          M 1 Reply Last reply Reply Quote 0
          • M
            mcury Rebel Alliance @FOOLiSH86
            last edited by mcury

            @foolish86 duckdns api is out of date in pfsense, thus you need to replace it with the new one:

            Go to github, find the duckdns.sh, click in raw, copy all the content:
            https://github.com/acmesh-official/acme.sh/tree/master/dnsapi

            cd /usr/local/pkg/acme/dnsapi
            mv dns_duckdns.sh dns_duckdns.sh.backup
            vi dns_duckdns.sh
            paste the code from github and save
            chmod 555 dns_duckdns.sh

            then try again to renew

            dead on arrival, nowhere to be found.

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

              @mcury You beat me ;) hehehe

              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

              M 1 Reply Last reply Reply Quote 1
              • M
                mcury Rebel Alliance @johnpoz
                last edited by mcury

                @johnpoz :) hehe, already have that noted down in a .txt file, I cheated =P

                dead on arrival, nowhere to be found.

                F 1 Reply Last reply Reply Quote 0
                • F
                  FOOLiSH86 @mcury
                  last edited by

                  @mcury
                  /usr/local/pkg/acme/dnsapi/dns_duckdns.sh: 7: Syntax error: newline unexpected (expecting word)

                  when i issue/renew

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    mcury Rebel Alliance @FOOLiSH86
                    last edited by

                    @foolish86 said in Renewal of certificates:

                    @mcury
                    /usr/local/pkg/acme/dnsapi/dns_duckdns.sh: 7: Syntax error: newline unexpected (expecting word)

                    when i issue/renew

                    I renewed my certificate a week ago and it worked, kindly check and confirm if you copied exactly as it is in github

                    Click in raw like the image below
                    e7b649b5-8418-4125-9bcc-64fb3ad62f2b-image.png

                    dead on arrival, nowhere to be found.

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      FOOLiSH86 @mcury
                      last edited by

                      @mcury
                      i have downloaded the file exactly dns_duckdns.sh

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        mcury Rebel Alliance @FOOLiSH86
                        last edited by mcury

                        I didn't download it, copied the raw content and pasted through vi, then changed the permission of the file, and it worked.

                        Not sure if there is a difference between copying like I did and downloading like you did, but give it a try, who knows?

                        [21.05.1-RELEASE][root@xxx.xxx]/usr/local/pkg/acme/dnsapi: sha256 dns_duckdns.sh
                        SHA256 (dns_duckdns.sh) = 861f9dd27adf5cfdfb9b6ed0ab6abfa80aa5462333651e0edebe69430397c17b
                        

                        dead on arrival, nowhere to be found.

                        1 Reply Last reply Reply Quote 0
                        • F
                          FOOLiSH86
                          last edited by

                          all ok! after copy all works! πŸ‘

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