pfSense Gold Subscription

Author Topic: acme/letsencrypt with sftp webroot  (Read 269 times)

0 Members and 1 Guest are viewing this topic.

Offline deadmalc

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
acme/letsencrypt with sftp webroot
« on: February 05, 2017, 08:05:31 am »
I'm using an sftp webroot.
I can sftp from PFSense to the server with the credentials entered.
However it gives this:

Fatal error: Using $this when not in object context in /usr/local/pkg/acme/acme.inc on line 553

Call Stack:
0.0001 233600 1. {main}() /usr/local/pkg/acme/acme_command.sh:0
0.0398 10234696 2. pfsense_pkg\acme\challenge_response_cleanup() /usr/local/pkg/acme/acme_command.sh:65

PHP ERROR: Type: 1, File: /usr/local/pkg/acme/acme.inc, Line: 553, Message: Using $this when not in object context[Sun Feb 5 13:53:03 GMT 2017] xxxxx:Verify error:Invalid response from http://xxxxxxx/.well-known/acme-challenge/BjwthyFk4OS51Kd8HELz5D0DSuXpd-7z6aNMP1jOzjw:
[Sun Feb 5 13:53:03 GMT 2017] Error rm webroot api for domain:pfSenseacme
[Sun Feb 5 13:53:03 GMT 2017] Please check log file for more details: /tmp/acme/xxxx/acme_issuecert.log

The log simply shows that acme didn't verify, which given it's not put the challenge on the server is not a surprise.
There is no entry to show even an attempt to sftp the challenge to the server.

Has anyone else tried this, or should I raise a bug report.

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 19624
  • Karma: +1071/-7
    • View Profile
Re: acme/letsencrypt with sftp webroot
« Reply #1 on: February 06, 2017, 02:07:22 pm »
There were some issues with that code path. Update the package to 0.1.7 or later when it shows up and it should work.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!