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

    Pfsense ACME CERT LE package method HTTP standalone error while issuing

    Scheduled Pinned Locked Moved ACME
    7 Posts 2 Posters 2.6k 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.
    • S
      sshami
      last edited by

      Re: ACME

      I am freshly installed new pfsense with ACME and HAProxy.
      Trying to issue certificate ACME LE via DOMAIN SAN List - Method - Standalone HTTP server but getting following error.
      ###################################################################################################
      Renewing certificate
      account: letsencrypt-prod
      server: letsencrypt-production-2

      /usr/local/pkg/acme/acme.sh --issue --domain 'mydomain.test.network' --standalone --listen-v4 --httpport '8126' --home '/tmp/acme/devop-testing/' --accountconf '/tmp/acme/devop-testing/accountconf.conf' --force --reloadCmd '/tmp/acme/mydomain/reloadcmd.sh' --log-level 3 --log '/tmp/acme/mydomain/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/
      [port] => 8126
      [ipv6] =>
      )
      [Fri Jun 11 14:30:46 CEST 2021] Using CA: https://acme-v02.api.letsencrypt.org/directory
      [Fri Jun 11 14:30:46 CEST 2021] Standalone mode.
      [Fri Jun 11 14:30:46 CEST 2021] Single domain='mydomain.test.network'
      [Fri Jun 11 14:30:46 CEST 2021] Getting domain auth token for each domain
      [Fri Jun 11 14:30:49 CEST 2021] Getting webroot for domain='mydomain.test.network'
      [Fri Jun 11 14:30:49 CEST 2021] Verifying: mydomain.test.network
      [Fri Jun 11 14:30:49 CEST 2021] Standalone mode server
      [Fri Jun 11 14:30:54 CEST 2021] mydomain.test.network:Verify error:Invalid response from http://mydomain.test.network/.well-known/acme-challenge/kg6AC3IfSpBGZhJODIAzlFabYrOSiXkT5dwA8dFLIV8 [xxx.xx.xx.xx]: 503
      [Fri Jun 11 14:30:54 CEST 2021] Please check log file for more details: /tmp/acme/mydomain/acme_issuecert.log

      ####################################################################################################
      I can resolve by dns name in pfsense and checked on the Physical Firewall logs there are not drop pf packets, rules are defined.
      On WAN interface port 80 and 443 open.

      Try to issue CERT with method AWS Route53 it works but in my environment i need to use method standalone HTTP method.

      I am struggling badly with this error, any suggestion highly appreciated.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @sshami
        last edited by

        You can do what the Letsencrypt 'test process' does.

        @sshami said in Pfsense ACME CERT LE package method HTTP standalone error while issuing:

        [Fri Jun 11 14:30:54 CEST 2021] mydomain.test.network:Verify error:Invalid response from http://mydomain.test.network/.well-known/acme-challenge/kg6AC3IfSpBGZhJODIAzlFabYrOSiXkT5dwA8dFLIV8 [xxx.xx.xx.xx]: 503

        This :
        http://mydomain.test.network/.well-known/acme-challenge/kg6AC3IfSpBGZhJODIAzlFabYrOSiXkT5dwA8dFLIV8
        returned a '503'.

        Double check that you (also) can reach
        http://mydomain.test.network:8126
        yourself.

        How ? Use a browser.

        Then check that a sub directory "acme-challenge" is created - and the file in it : "kg6AC3IfSpBGZhJODIAzlFabYrOSiXkT5dwA8dFLIV8 "
        and that it return a content.

        If you can do it, with your PC, and from another WAN IP, like your phone, then the Letsencrypt test process can do also.
        And will succeed, so it gives you a cert.

        Btw : You can see what happened in the log stated : /tmp/acme/mydomain/acme_issuecert.log

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        S 2 Replies Last reply Reply Quote 1
        • S
          sshami @Gertjan
          last edited by

          @gertjan thanks for your input!

          http://mydomain.test.network:8126 - Not getting anything

          http://mydomain.test.network

          bd7b7447-a678-4659-b999-883a2895b554-image.png

          acme_issuecert.log:

          response='{
          "type": "urn:ietf:params:acme:error:malformed",
          "detail": "Unable to update challenge :: authorization must be pending",
          "status": 400
          }'

          I checked packets on firewall there is no any block or deny!
          Struggling with this issue very badly.

          1 Reply Last reply Reply Quote 0
          • S
            sshami @Gertjan
            last edited by

            @gertjan
            Where is the location of this folder : .well-known/acme-challenge/kg6AC3IfSpBGZhJODIAzlFabYrOSiXkT5dwA8dFLIV8

            GertjanG 1 Reply Last reply Reply Quote 0
            • GertjanG
              Gertjan @sshami
              last edited by

              @sshami said in Pfsense ACME CERT LE package method HTTP standalone error while issuing:

              @gertjan
              Where is the location of this folder : .well-known/acme-challenge/kg6AC3IfSpBGZhJODIAzlFabYrOSiXkT5dwA8dFLIV8

              According to you :

              @sshami said in Pfsense ACME CERT LE package method HTTP standalone error while issuing:

              I am freshly installed new pfsense with ACME and HAProxy.

              So I understand (now) that you use the HAProxy setup to host some web site locally somewhere (on your LAN). Using the method "Standalone HTTP server "
              That's where the "HAProxy" directory and file should be created.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              S 2 Replies Last reply Reply Quote 0
              • S
                sshami @Gertjan
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • S
                  sshami @Gertjan
                  last edited by

                  @gertjan
                  Hi gertjan, thanks for the info now i am able to create CERT.

                  I have one more question, i have HA setup of Primary and secondary node pfsense.
                  What is the best way to configure ACME CERT sync with Primary to secondary. Both nodes have acme and HAProxy package installed when i see on secondary node in Acme certificates - CA i found CA not listed not sync.
                  But when i go to secondary node, System - Cert Manager - Certificates i found certificate synced here.

                  Do we really need to install ACME package on secondary node? Sync is working fine with other things but only ACME cert sync has problem.

                  I would like a setup when one node fail, second carry on everthing.

                  Thanks in advance.

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