LetsEncrypt SSL script does not work Ubuntu 18.04

#1
Hello Everyone,

I am trying to install an SSL cert through LetsEncrypt using the guide @ https://openlitespeed.org/kb/lets-encrypt-ssl-on-openlitespeed/
and I am getting the following error;

Bash:
root@init01:~# ./certbot-auto certonly --no-bootstrap
Creating virtual environment...
Traceback (most recent call last):
  File "<stdin>", line 27, in <module>
  File "<stdin>", line 19, in create_venv
  File "/usr/lib/python2.7/subprocess.py", line 185, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 172, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Python is definitely installed along with Python-PIP packages. Any ideas why this is happening?

Thanks Kindly,

Jason
 
#4
Yes, Certbot official method should be better. I also updated the wiki, thanks.
Thanks kindly for both your reply and updating the wiki link (y)

Upon trying however I get a different error this time;

Code:
root@init01:/var/lib/letsencrypt# certbot certonly --dry-run --webroot -w /usr/local/lsws/Example -d initiateit.com.au
The error;

Code:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for initiateit.com.au
Using the webroot path /usr/local/lsws/Example for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. initiateit.com.au (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://initiateit.com.au/.well-known/acme-challenge/XfyynEyEQ4BwRwhjRvTGiukDe06v9pprIozCasJu4w4 [103.108.228.187]: "<html>\n  <head>\n    <title>Page Not Found</title>\n  </head>\n<body bgcolor=\"#ffffff\">\n<hr>\n<h1>Request Page Not Found</h1>\nThis i"

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: initiateit.com.au
   Type:   unauthorized
   Detail: Invalid response from
   http://initiateit.com.au/.well-known/acme-challenge/XfyynEyEQ4BwRwhjRvTGiukDe06v9pprIozCasJu4w4
   [103.108.228.187]: "<html>\n  <head>\n    <title>Page Not
   Found</title>\n  </head>\n<body
   bgcolor=\"#ffffff\">\n<hr>\n<h1>Request Page Not Found</h1>\nThis
   i"

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address.
As far as i understand LetsEncrypt cant authorise because there is no acme challenge in the directory. This is just the stock Example directory ( /usr/local/lsws/Example) with unchanged permissions.

Thanks kindly for your help,
Jason
 
#5
Also running this with the
Code:
./certbot-auto certonly
(which does not skip the bootstrap of packages gives the same error;

Code:
Waiting for verification...
Challenge failed for domain initiateit.com.au
Challenge failed for domain www.initiateit.com.au
http-01 challenge for initiateit.com.au
http-01 challenge for www.initiateit.com.au
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: initiateit.com.au
   Type:   unauthorized
   Detail: Invalid response from
   http://initiateit.com.au/.well-known/acme-challenge/OSP6zNk-gY2M9qC_d4ktuLw8snTUXMNu8jHtaO8ZSqY
   [103.108.228.187]: "<html>\n  <head>\n    <title>Page Not
   Found</title>\n  </head>\n<body
   bgcolor=\"#ffffff\">\n<hr>\n<h1>Request Page Not Found</h1>\nThis
   i"
 
#6
OK now the
Code:
./certbot-auto
script works, all that was wrong was I was not using /usr/local/lsws/Example/html

Leaving for anyone else to point and laugh at my sillyness :D
 
Top