Keywords: WordPress - Amazon Web Services - Technical issue - Secure Connections (SSL/HTTPS)Description: when I try to create Cert. with this command:sudo lego --email="email@example.com" --domains="www.mydomain.com" --path="/etc/lego" run
I get Could not create client: directory missing new registration URL
This is weird, could you confirm that you stopped the services before executing the command as stated in this guide?
In addition, just in case, does the /etc/lego folder exist?
Javier J. Salmerón
Was my answer helpful? Click on
now i see something new.when i stop services (step 1) i get this error: AH00526: Syntax error on line 46 of /opt/bitnami/apache2/conf/bitnami/bitnami.conf:SSLCertificateFile: file '/opt/bitnami/apache2/conf/server.crt' does not exist or is emptyapache config test fails, aborting
lego exist:bitnami@ip-172-30-0-76:~$ sudo lego --email="firstname.lastname@example.org" --domains="www.gspaytech.com" --path="/etc/lego" run2018/05/31 10:43:27 Could not create client: directory missing new registration URLbitnami@ip-172-30-0-76:~$ cd /etc/legobitnami@ip-172-30-0-76:/etc/lego$ lsaccounts certificatesbitnami@ip-172-30-0-76:/etc/lego$
I am having the same issue with the "Could not create client: directory missing new registration URL" however I have all the services shut down, and I keep getting this error. I'm running Wordpress on AWS Ubuntu 16.04 with an apache webserver.
I have checked that the /etc/lego exists, and there is even a key in there, but I cannot create client. Any help would be appreciated.
Also experiencing this issue on a new orangehrm v4.1-0 deployment on Azure VM with Ubuntu 16.04. Lego v188.8.131.52
I'm getting the same error as Matt on a brand new Bitnami NodeJS instance.
1 more website is down, same setup same issue!
no error when loading the server or restart any service.
just refuse to create the Cert.
"Could not create client: directory missing new registration URL"
changed owner and mod on folders on files still same.
It looks like the issue here is with the Lego client: Lego GitHub Issue #562
Go ahead and step through the process and pull the latest Lego client down, and run the rest of the steps.
This should correctly generate the new cert.
mt entire putty outpot:Last login: Thu May 31 10:40:50 2018 from 184.108.40.206bitnami@ip-172-30-0-76:~$ sudo /opt/bitnami/ctlscript.sh stop
AH00526: Syntax error on line 46 of /opt/bitnami/apache2/conf/bitnami/bitnami.conf:SSLCertificateFile: file '/opt/bitnami/apache2/conf/server.crt' does not exist or is emptyapache config test fails, aborting/opt/bitnami/php/scripts/ctl.sh : php-fpm not running/opt/bitnami/mysql/scripts/ctl.sh : mysql not runningbitnami@ip-172-30-0-76:~$ sudo lego --email="email@example.com" --domains="www.gspaytech.com" --path="/etc/lego" run2018/06/01 10:47:16 Could not create client: directory missing new registration URL
files are there..
Hi @Asi_Av @danderson ,
It seems that there is something wrong in the Apache's configuration and the certificates. We have a Support Tool that will gather relevant information for us to debug the issue. Could you please download and execute it on the machine where the stack is running by following the steps described in the guide below?
How to Run the Bitnami Support Tool
Please note that you need to paste the code outputted by the tool in your reply.
Apart from that, could you please run the following command and share its output with us?
sudo ls -la /etc/lego/certificates/
bitnami@ip-172-30-0-76:~$ sudo ls -la /etc/lego/certificates/total 8drwxrwxrwx 2 bitnami bitnami 4096 May 31 01:25 .drwxr-xr-x 4 root root 4096 Feb 22 18:03 ..
found on other post here, cant find the link, so...
create /tmp1 copy lego client need to tweak command, new client different from file name in the post:i used:tar xf lego_v1.0.1_linux_amd64.tar.gzsudo mv lego /usr/local/bin/lego
this time lego create cert, copy process was smooth. all good now.
Thank you for letting us know it @Asi_Av,
the link you mentioned is this one
Our documentation team is working on updating that information.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.