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

查看:232
本文介绍了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应用甚至不需要证书(如果它在localhost上)。有关详细信息,请参阅此答案:

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:

  • Configuring HTTPS for Express and Nginx

它使用示例nginx但您也应该能够使用IIS代理请求。参见本教程:

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

  • Setup IIS with URL Rewrite as a reverse proxy for real world apps

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

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