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

Acme/letsencrypt error creating directory…

Scheduled Pinned Locked Moved ACME
12 Posts 3 Posters 9.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.
  • H
    hvisage
    last edited by Feb 8, 2017, 10:04 AM

    /usr/local/pkg/acme/acme_command.sh: PHP ERROR: Type: 1, File: /usr/local/pkg/acme/acme.inc, Line: 525, Message: Uncaught exception 'RuntimeException' with message 'Couldn't create directory to expose challenge: ' in /usr/local/pkg/acme/acme.inc:525 Stack trace: #0 /usr/local/pkg/acme/acme_command.sh(58): pfsense_pkg\acme\challenge_response_put('pfw1.tracks4afr…', 'pfw.tracks4afri...', 'KxNZYWUnASAM0zQ...', 'KxNZYWUnASAM0zQ...') #1 {main} thrown

    2.3.2-RELEASE-p1
    acme 0.1.9

    Where can I see the directory it tried to create that failed?

    1 Reply Last reply Reply Quote 0
    • R
      roadfox
      last edited by Feb 8, 2017, 2:36 PM

      Same versions and same issue here:

      Fatal error: Uncaught exception 'RuntimeException' with message 'Couldn't create directory to expose challenge: ' in /usr/local/pkg/acme/acme.inc on line 525

      RuntimeException: Couldn't create directory to expose challenge: in /usr/local/pkg/acme/acme.inc on line 525

      Call Stack:
      0.0003 232952 1. {main}() /usr/local/pkg/acme/acme_command.sh:0
      0.0870 10649896 2. pfsense_pkg\acme\challenge_response_put() /usr/local/pkg/acme/acme_command.sh:58

      PHP ERROR: Type: 1, File: /usr/local/pkg/acme/acme.inc, Line: 525, Message: Uncaught exception 'RuntimeException' with message 'Couldn't create directory to expose challenge: ' in /usr/local/pkg/acme/acme.inc:525
      Stack trace:
      #0 /usr/local/pkg/acme/acme_command.sh(58): pfsense_pkg\acme\challenge_response_put('fw.aironaut.ch', 'fw.aironaut.ch', 'uhSaYT9UeNLNsOp…', 'uhSaYT9UeNLNsOp...')
      #1 {main}
      thrown[Wed Feb 8 15:34:29 CET 2017] Pending
      [Wed Feb 8 15:34:31 CET 2017] Pending
      [Wed Feb 8 15:34:33 CET 2017] Found domain http api file: /tmp/acme/fw.aironaut.ch//httpapi/pfSenseacme.sh
      [Wed Feb 8 15:34:26 CET 2017] Error add txt for domain:
      [Wed Feb 8 15:34:33 CET 2017] fw.aironaut.ch:Verify error:Could not connect to fw.aironaut.ch
      [Wed Feb 8 15:34:34 CET 2017] Please check log file for more details: /tmp/acme/fw.aironaut.ch/acme_issuecert.log

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by Feb 8, 2017, 3:11 PM

        @hvisage:

        Where can I see the directory it tried to create that failed?

        Erm… that'd be the one you configured (if you are talking about the local webroot method). If you did not configure any, no wonder it doesn't work.

        1 Reply Last reply Reply Quote 0
        • R
          roadfox
          last edited by Feb 8, 2017, 3:18 PM

          a hint where this is configured would be much appreciated

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by Feb 8, 2017, 3:20 PM

            In the same place where you select the method.

            1 Reply Last reply Reply Quote 0
            • R
              roadfox
              last edited by Feb 8, 2017, 3:30 PM

              There's no field to configure a directory in pf version 2.3.2_1 and acme package 0.1.9

              Also i don't think that configuring webroot is enough, from what i saw so far LE tryes to access a document over http, but there is no webserver listening on port 80 nor is there a firewall rule allowing access from LE to 80 over WAN.
              would be great if the cert issue process ensures that LE is trying to access the document over 443 (if webif is on 443) and that there is a rule or even better open a temporary one if this is possible

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by Feb 8, 2017, 3:38 PM

                @roadfox:

                There's no field to configure a directory in pf version 2.3.2_1 and acme package 0.1.9

                What ???

                (And yeah you need to have a webserver running there, completely OT for this thread. See this.)

                Screenshot_webroot_folder.png_thumb
                Screenshot_webroot_folder.png

                1 Reply Last reply Reply Quote 0
                • R
                  roadfox
                  last edited by Feb 8, 2017, 4:17 PM Feb 8, 2017, 4:11 PM

                  See attachement on how it looks on my pfsense

                  Do i use a broken template i'm not aware that i changed it, but i'm absolutely not sure
                  In the other thread you write "If someone really insists on using  a local webroot."
                  I'm absolutely not insisting on it, but which is the prefered method to use?

                  And many thank for helping and replying so quick!

                  ![Bild 5.png](/public/imported_attachments/1/Bild 5.png)
                  ![Bild 5.png_thumb](/public/imported_attachments/1/Bild 5.png_thumb)

                  1 Reply Last reply Reply Quote 0
                  • D
                    doktornotor Banned
                    last edited by Feb 8, 2017, 4:45 PM

                    Click the + there.

                    1 Reply Last reply Reply Quote 0
                    • R
                      roadfox
                      last edited by Feb 8, 2017, 5:12 PM

                      oh boy, ok got it, many thanks

                      1 Reply Last reply Reply Quote 0
                      • D
                        doktornotor Banned
                        last edited by Feb 8, 2017, 5:22 PM

                        https://redmine.pfsense.org/issues/7237

                        1 Reply Last reply Reply Quote 0
                        • H
                          hvisage
                          last edited by Feb 13, 2017, 4:42 PM

                          doktornotor pointed to the method how to set it up with HAproxy whenthereisn'tawebserveronport80*

                          HOWEVER: The default nginx Webconfigurator, will also listen on port 80 when the "WebGUI redirect" is unchecked (System -> Advanced -> Admin Access)

                          Then, under the certificate under the Services -> ACME, select/edit/create the certificate, you select the webroot local, and then use /usr/local/www/.well-known/acme-challenge/
                          (See attachment)

                          I suspect when I check that WebGUI redirect disable, then you could use the "standalone HTTP server" option…

                          ![Screenshot 2017-02-13 18.39.46.png](/public/imported_attachments/1/Screenshot 2017-02-13 18.39.46.png)
                          ![Screenshot 2017-02-13 18.39.46.png_thumb](/public/imported_attachments/1/Screenshot 2017-02-13 18.39.46.png_thumb)

                          1 Reply Last reply Reply Quote 0
                          12 out of 12
                          • First post
                            12/12
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                            This community forum collects and processes your personal information.
                            consent.not_received