Welcome! Log In Create A New Profile

Advanced

How to setup HTTPS support in NGINX for Windows

Posted by matrixebiz 
How to setup HTTPS support in NGINX for Windows
January 13, 2022 10:47AM
Good Day, does anyone have some simple instructions for configuring/setting up https support in NGINX for Windows? Thanks
Re: How to setup HTTPS support in NGINX for Windows
March 15, 2022 02:52PM
Here are the instructions;

Download Nginx
http://nginx-win.ecsds.eu/

Download win-acme pluggable
https://github.com/PKISharp/win-acme/releases

Run wacs.exe in Command Prompt then use selections below;

M (Create Full), 2 (Manual), 6 (dns-01 Create Manually), 2 (RSA), 2 (PEM Nginx), 5 (No more stores), 4 (No additional)
Create the TXT Record at your Domain hosting portal with the content string displayed on the screen then continue and it will create the Certs.

Add to your nginx.conf config file; (Edit the location of the files and your domain name of course)

server {
listen 443 ssl;
server_name localhost;
ssl_certificate C:/Temp/domain.com-chain.pem;
ssl_certificate_key C:/Temp/domain.com-key.pem;
ssl_session_timeout 5m;
charset utf-8;

location / {
root C:/www/;
index index.html;
}
}
}


Check if SSL is working - https://www.ssl2buy.com/wiki/ssl-installation-checker or just https your site.
Re: How to setup HTTPS support in NGINX for Windows
March 15, 2022 03:04PM
I posted the instructions but it doesn't seem to be showing, unless it's waiting for moderator approval as it errors when I try to post them again;
"The message could not be posted. The exact same message has already been posted before and posting duplicate messages is not allowed in this forum."



Edited 1 time(s). Last edit at 03/15/2022 03:06PM by matrixebiz.
Re: How to setup HTTPS support in NGINX for Windows
March 16, 2022 11:43AM
I have 1 too many close brackets up there
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 142
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready