Let's Encrypt problem


I have a problem with Let’s Encrypt.

  1. I have installed it :
cd /usr/local apt-get install git git clone https://github.com/letsencrypt/letsencrypt ./letsencrypt-auto -help
  1. I went to Webmin Configuration and type the full path of Let’s Encrypt : http://nsa37.casimages.com/img/2016/10/07/161007111912327814.png

  2. I enabled the SSL feature on Virtualhost et request the certificate. But I got an error :

Requesting a certificate for mydomain.com from Let’s Encrypt …
… request failed : Expected private key file /etc/letsencrypt/keys/privkey.pem was not found

Have you an idea ?


Hi, I encountered this issue as well.

You will need to find the location of the privkey.pem, fullchain.pem and cert.pem and copy them to the expected location.

In my case the keys were located in /etc/letsencrypt/archive/servername.domain.com/privkey1.pem /etc/letsencrypt/archive/servername.domain.com/fullchain1.pem /etc/letsencrypt/archive/servername.domain.com/cert1.pem

So using your root user you copy these files to /etc/letsencrypt/keys/ folder. Copy them so they match the expected file name. i.e cert.pem, privkey.pem, fullchain.pem.

Then you re-run the tool and it should find the key.

Generally speaking, you want to use the built-in Let’s Encrypt module to generate keys with Webmin.

Hi, thank you for your answer. I have now this error :

Parsing account key... Parsing CSR... Registering account... Already registered! Verifying www.mydomain.com... Wrote file to /home/mydomain/public_html/.well-known/acme-challenge/MsnROd-5G6S9C_B6Pb5qrfJ9QIfY9U8StrQJcd4DmTY, but couldn't download http://www.mydomain.com/.well-known/acme-challenge/MsnROd-5G6S9C_B6Pb5qrfJ9QIfY9U8StrQJcd4DmTY Traceback (most recent call last): File "/usr/share/webmin/webmin/acme_tiny.py", line 202, in main(sys.argv[1:]) File "/usr/share/webmin/webmin/acme_tiny.py", line 198, in main signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca) File "/usr/share/webmin/webmin/acme_tiny.py", line 153, in get_crt domain, challenge_status)) ValueError: www.mydomain.com challenge did not pass: {u'status': u'invalid', u'validationRecord': [{u'url': u'http://www.mydomain.com/.well-known/acme-challenge/MsnROd-5G6S9C_B6Pb5qrfJ9QIfY9U8StrQJcd4DmTY', u'hostname': u'www.mydomain.com', u'addressUsed': u'', u'port': u'80', u'addressesResolved': [u'']}], u'keyAuthorization': u'MsnROd-5G6S9C_B6Pb5qrfJ9QIfY9U8StrQJcd4DmTY.aFh0v8s9auw2l8jGNWuyfqsiHEzYbcxUsYFNjgJmPlg', u'uri': u'https://acme-v01.api.letsencrypt.org/acme/challenge/bUbh-3NizXv7ZzZp0DN5vAQ-xT18v76UB3O5sgatKO4/288593425', u'token': u'MsnROd-5G6S9C_B6Pb5qrfJ9QIfY9U8StrQJcd4DmTY', u'error': {u'status': 403, u'type': u'urn:acme:error:unauthorized', u'detail': u'Invalid response from http://www.mydomain.com/.well-known/acme-challenge/MsnROd-5G6S9C_B6Pb5qrfJ9QIfY9U8StrQJcd4DmTY: "\r\n\r\n \r\n\r\n \r\n \r\n <meta"'}, u'type': u'http-01'}


I solve the problem.

Joomla comes with a htaccess file with the following rule meant to ‘Block access to “hidden” directories whose names begin with a period’:

I had this on .htaccess :

RewriteCond %{REQUEST_URI} !^/.well-known/*
RewriteRule “(^|/).” - [F]


hello, i also getting this, is there an issue with the rules in .htaccess?