Hi! This is my first post and my first go with WO. I am having problems installing LE certificate with CloudFlare.
I am running WO on Ubuntu 18.04 LTS (Both fresh and updated). Hosted by Linode.
I installed a Wordpress site with these arguments: --wpredis --php73 -le --hsts.
The site was successfully installed, but without LE certificate as it failed. After doing research on how to enable LE with CF I tried to update the site with LE as follows
export CF_Key="xxxxx"
export CF_Email="xxxxx"
sudo wo site update spill.tips --le --dns=dns_cf
Certificate type : domain
Validation mode : DNS mode with dns_cf
Issuing SSL cert with acme.sh [KO]
Please make sure your properly set your DNS API credentials for acme.sh
Unable to issue certificate
I have double checked that I am using the correct Cloudflare and account email and global API key. But WO seems to complain about the credentials. The Cloudflare encryption mode is set to FULL. The A and AAAA DNS records are proxy enabled at Cloudflare. I could open them during the LE installation (assume it would work then) but I would rather not expose my server IPs.
I have been stuck a couple of days now. Help is highly appreciated. I have previously been using EasyEngine 3 and 4. There I never had problems (and no special setup required) to get LE to work with CF. But, I am excited about WO and would like to get it working.
Am I doing something wrong or is this a bug? When adding the --debug switch to the update run I get more information (see below). Thank you very much!!
Certificate type : domain
Validation mode : DNS mode with dns_cf
Issuing SSL cert with acme.sh [KO]
Please make sure your properly set your DNS API credentials for acme.sh
Unable to issue certificate
2019-10-02 05:14:39,881 (DEBUG) cement.core.foundation : closing the wo application
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/wo-3.9.9.1-py3.6.egg/wo/cli/main.py", line 104, in main
app.run()
File "/usr/local/lib/python3.6/dist-packages/cement-2.8.2-py3.6.egg/cement/core/foundation.py", line 797, in run
return_val = self.controller._dispatch()
File "/usr/local/lib/python3.6/dist-packages/cement-2.8.2-py3.6.egg/cement/core/controller.py", line 472, in _dispatch
return func()
File "/usr/local/lib/python3.6/dist-packages/cement-2.8.2-py3.6.egg/cement/core/controller.py", line 472, in _dispatch
return func()
File "/usr/local/lib/python3.6/dist-packages/cement-2.8.2-py3.6.egg/cement/core/controller.py", line 478, in _dispatch
return func()
File "/usr/local/lib/python3.6/dist-packages/wo-3.9.9.1-py3.6.egg/wo/cli/plugins/site.py", line 954, in default
self.doupdatesite(pargs)
File "/usr/local/lib/python3.6/dist-packages/wo-3.9.9.1-py3.6.egg/wo/cli/plugins/site.py", line 1481, in doupdatesite
Log.error(self, "Unable to issue certificate")
File "/usr/local/lib/python3.6/dist-packages/wo-3.9.9.1-py3.6.egg/wo/core/logging.py", line 25, in error
self.app.close(1)
File "/usr/local/lib/python3.6/dist-packages/cement-2.8.2-py3.6.egg/cement/core/foundation.py", line 876, in close
sys.exit(self.exit_code)
SystemExit: 1
winder@jesper:$