Link to home
Start Free TrialLog in
Avatar of Amin El-Zein
Amin El-Zein

asked on

wamp lets encrypt problem

Hello,
I have wamp version  3.1.3  i have multiple website and everything work fine ....
i want to enable lets encrypt certificate on on of website:
i do the following steps:
on httpd:
oadModule ssl_module modules/mod_ssl.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
on vhsot file:
<VirtualHost *:80>
 ServerName mydomain.com
 ServerAlias www.mydomain.com
 DocumentRoot "c:/mywebsites/www.mydomain.com"
 <Directory  "c:/mywebsites/www.mydomain.com/">
  Options Indexes FollowSymLinks
        AllowOverride all
        Order Deny,Allow
        Allow from all
        Require all granted
 </Directory>
 ErrorLog "logs/mydomain.com-error.log"
 CustomLog "logs/mydomain.com-access.log" common
 Alias /.well-known c:/mywebsites/www.mydomain.com/.well-known
</VirtualHost>
and download the last package of  letsencrypt-win-simple
the run the letsencyprt file as admin
press m the 1 then mydomain.com then  4  then 1
its give me validation plugin not found or not created
create certificate failed
i try to brows http://mydomain.com/.well-known
its give me:The requested URL /.well-known was not found on this server.
so where is the problem ?
is there any other way to get i certificate ?
thanks.
ASKER CERTIFIED SOLUTION
Avatar of btan
btan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Your actual cert generation example is missing. Here's an example...

certbot-auto certonly --dry-run --non-interactive --rsa-key-size 4096 --email david\@davidfavor.com --agree-tos --webroot -w /var/www/html -d davidfavor.com -d www.davidfavor.com

Open in new window


Always run a dryrun first, because if you continually have an error you will quickly hit the LetsEncrypt errors/hour rate limit.

Once you have a successful initial cert generated (using /var/www/html), you can setup your actual DocumentRoot.

Then in CRON run something like...
0 */1 * * * (echo '#####' && date && certbot-auto renew --non-interactive --post-hook "service apache2 reload") > /var/log/ssl-renewals.log 2>&1

Open in new window

I run hourly CRON jobs because if you do this once a day or week, you'll hit another LetsEncrypt renewals/hour rate limit.

Running certbot-auto renew repeatedly takes near zero resources as cert expirations are checked first, so if no certs require renewal, no real work occurs.
Be great if you can update this thread with state of your question. If it's resolved or still open.
Avatar of btan
btan

For author advice