nom3d wrote:I found this site useful https://www.sslforfree.com/ just need to add virtual host for 443 and set path for certs
This worked great. I was racking my brains searching all over the internet for useful information. sslforfree is the only thing that worked for me. And it couldn't be easier.
For anyone else having issues, here's a couple of tips on how to get it working.
First, make sure your virtual hosts are in place. You need a readable ./well-known/acme-challenge/ for validation.
Second, when you make the certificates, choose the "download all" option and you'll get 2 certs and a key file.
I put those files into C:\xampp\apache\conf\altcerts\domain.tld\ for storage. They can go anywhere, but since my self signed certificate was located in \conf\, I put the letsencrypt ones there in a way I could keep track of them.
Lastly, I had a little trouble figuring out which cert was for what, but this works (virtual host):
- Code: Select all
SSLCertificateFile "conf/altcerts/domain.tld/certificate.crt"
SSLCertificateKeyFile "conf/altcerts/domain.tld/private.key"
SSLCertificateChainFile "conf/altcerts/domain.tld/ca_bundle.crt"
I'm not sure if you need the chain file, but I got it working that way.