简体   繁体   English

在 Nodejs Webapp 服务器上安装 SSL 证书

[英]Installing SSL Certificate on Nodejs Webapp Server

I have a webapp server based on nodejs installed on Windows Server 2016. I want to install an SSL Certificate on such server.我在 Windows Server 2016 上安装了一个基于 nodejs 的 webapp 服务器。我想在这样的服务器上安装 SSL 证书。 I've generated a free SSL from Cloudflare but it downloaded a DER file.我从 Cloudflare 生成了一个免费的 SSL,但它下载了一个 DER 文件。 The person responsible for configuring the Webserver said he needs a.pfx and a passphrase in order to install the SSL Certificate.负责配置 Webserver 的人员说,他需要 a.pfx 和密码才能安装 SSL 证书。 Is there a way to convert.der to.pfx with a passphrase, or is there any other way to do that for free or buy one at a very low cost, Thanks in advance有没有办法使用密码将.der 转换为.pfx,或者有没有其他方法可以免费或以非常低的成本购买,提前致谢

If you need a custom SSL certificate for you server, consider obtaining it directly from Let's Encrypt https://letsencrypt.org/ .如果您需要为您的服务器定制 SSL 证书,请考虑直接从 Let's Encrypt https://letsencrypt.org/获取它。

Alternatively, you can use Cloudflare as a reverse proxy on top of your Node.js server that will add SSL automatically without a need to configure anything (other than creating a DNS record and checking "Cloudflare Proxy" (orange) checkbox. Then in your server settings, you would just configure firewall rules to allow connections only from Cloudflare IPs that can be found here — https://www.cloudflare.com/ips/ .或者,您可以在 Node.js 服务器上使用 Cloudflare 作为反向代理,该服务器将自动添加 SSL 而无需配置任何东西(除了创建 DNS 设置记录并选中“在 Cloudflare 服务器 Proxy 范围设置”复选框。 ,您只需配置防火墙规则以仅允许来自 Cloudflare IP 的连接,这些 IP 可在此处找到 — https://www.cloudflare.com/ips/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM