SSLCertificateKeyFile "conf/ssl.key/abskey.pem"ĬustomLog "G:/xampp/apache/logs/ssl_request.log" \ SSLCertificateFile "conf/ssl.crt/abscert.pem" Or could have an index.php page before /public# Thank you!ĭocumentRoot "G:/xampp/htdocs//public/" I missed this important step for days until I read this post. Then navigated to G:\xampp\apache\conf\extra\nf and did as was advised above.SSLCertificateKeyFile "G:\xampp\apache\conf\ssl.key\abskey.pem" SSLCertificateFile "G:\xampp\apache\conf\ssl.crt\abscert.pem" Options Indexes FollowSymLinks Includes ExecCGIĮrrorLog "G:/xampp/apache/logs/error.log"ĬustomLog "G:/xampp/apache/logs/access.log" common Then for G:\xampp\apache\conf\extra\httpd-vhosts entered the following:ĭocumentRoot "G:/xampp/htdocs//public/" #NB My document root is public. Copied these into C:\xampp\apache\ssl.crt and ssl.key folders respectively. Then took these and changed their names from cert1.pem to my domainname or shorter cert.pem and same for domainname or shorter key.key. the cmd windows tells you where these are. This created certs as cert1.pem and key1.pem in C:\Certbot yourwebsitedomain folder. Then followed the prompts and enteredmy domain name. navigated to system32- C:\WINDOWS\system32> certbot certonly -standalone Then from command line I enhtered the command from Certbot page above. Then downloaded and installed certbot software found at the next page into my C drive. Selected from their home page software and system. I am using xampp version from November 2020. I finally got this to work on my own hosted xampp windows 10 server web site. Restart Apache and your browser and it's done! SSLCertificateKeyFile "crt/site.test/server.key" SSLCertificateFile "crt/site.test/server.crt" Install this cert in Windows (Trusted Root Certification Authorities) See more details in the link aboveĪdd the site in Windows hosts (C:\Windows\System32\drivers\etc\hosts)Īdd the site in XAMPP conf (C:\xampp\apache\conf\extra\nf) There is a better guide here for Windows:Ĭreate an SSL certificate for your local domain using this: See more details in the link above
0 Comments
Leave a Reply. |