SSL 带节点/IIS [英] SSL With node / IIS

查看:24
本文介绍了SSL 带节点/IIS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在我加入的公司中的设置是使用 CA 签名证书将 IIS 用作我们的主要 Web 服务器.我可以访问certificate.pdx 以及私钥.

My current setup with the company i've joined is IIS is being used as our main web server, using a CA signed certificate. I've got access to the certificate.pdx aswell as the private key.

我已经设置了一个 https 节点 API 服务器来处理一些实时的东西/充当一个简单的附加中间层,但我的网站是通过 IIS 提供的.应用程序的流程是这样的.

I've setup a https node API server to handle some real time stuff / act as a simple additional middle layer, but my website is being served through IIS. The flow of the application is something like this.

1) 访问 IIS 将为其提供服务的网页

1) Visit web page where IIS will then serve it

2) 单击一个按钮,然后向我的节点服务器发出 GET 请求

2) Click on a button, which then makes a GET request to my node server

             IIS                                                  NODE

  E.g 100.10.10.10:3000/mypage     > Click Button >      100.10.10.10:4000/myGetRequest

目前我只是在我的开发环境中使用自签名,并手动接受证书.

At the minute i'm just using self signed in my development environment, and manually accepting the certificates.

我的问题是我可以只使用 IIS 在我的节点 HTTPS 服务器上使用的相同证书,还是需要不同的证书?

My question is can I just use the same certificate that IIS is using on my node HTTPS server, or do I need a different one?

推荐答案

最好是 IIS 可以将请求代理到您的 Node 应用程序.这样你的 Node 应用程序甚至不需要证书(如果它在本地主机上).有关更多详细信息,请参阅此答案:

It would be best if the IIS could proxy the requests to your Node app. That way your Node app wouldn't even need a certificate (if it's on localhost). See this answer for more details:

它使用了 nginx 的示例,但您也应该能够使用 IIS 代理请求.请参阅本教程:

It uses the example of nginx but you should be able to proxy the requests with IIS as well. See this tutorial:

这篇关于SSL 带节点/IIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆