简体   繁体   English

SSL与节点/ IIS

[英]SSL With node / IIS

My current setup with the company i've joined is IIS is being used as our main web server, using a CA signed certificate. 我目前与我加入的公司的设置是IIS被用作我们的主要Web服务器,使用CA签名证书。 I've got access to the certificate.pdx aswell as the private key. 我可以访问certificate.pdx以及私钥。

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. 我已经设置了一个https节点API服务器来处理一些实时信息/充当一个简单的附加中间层,但是我的网站是通过IIS服务的。 The flow of the application is something like this. 应用程序的流程是这样的。

1) Visit web page where IIS will then serve it 1)访问网页,然后IIS将为其提供服务

2) Click on a button, which then makes a GET request to my node server 2)单击一个按钮,然后向我的节点服务器发出GET请求

             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. 目前,我只是在开发环境中使用自签名,并手动接受证书。

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? 我的问题是我可以只使用与节点HTTPS服务器上IIS使用的证书相同的证书,还是需要其他证书?

It would be best if the IIS could proxy the requests to your Node app. 最好是IIS可以将请求代理到您的Node应用程序。 That way your Node app wouldn't even need a certificate (if it's on localhost). 这样,您的Node应用程序甚至不需要证书(如果它在本地主机上)。 See this answer for more details: 查看此答案以获取更多详细信息:

It uses the example of nginx but you should be able to proxy the requests with IIS as well. 它以nginx为例,但您也应该能够用IIS代理请求。 See this tutorial: 请参阅本教程:

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

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