Hi, I hope all is well
I have nginx/1.25.2 in my Windows server 2022 on my Drive Z. I wanted to install my domain SSL on it! But I couldn’t!
Can any body help me step by step, please?
I am waiting for your reply
Thank You
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Heya,
In addition to what’s has been already mentioned, you can check this article on Microsoft’s documentation on how to install SSL as well.
https://learn.microsoft.com/en-us/troubleshoot/windows-server/windows-security/install-imported-certificates
Regards
Heya @alinejadbahram,
Setting up SSL on Nginx, even on Windows, follows a somewhat similar procedure as on Linux. Here’s a step-by-step guide to help you set up SSL for your domain on Nginx running on your Windows Server:
Obtain SSL Certificate for Your Domain:
Place the Certificates in an Accessible Directory:
fullchain.pem
andprivkey.pem
or their.crt
and.key
equivalents), place them in a directory on your server, for instance,Z:\nginx\ssl\
.Update Your Nginx Configuration:
server
block for your domain, add the following:Replace
yourdomain.com
with your actual domain name and adjust the paths to point to where you’ve placed your SSL certificates. 4. Redirect HTTP to HTTPS (Optional): If you want to force redirect all HTTP traffic to HTTPS, you can add anotherserver
block like this: