简体   繁体   English

使用私钥为node.js设置SSL

[英]Setting up SSL for node.js with a private key

I've setup our IIS server with SSL enabled. 我已经设置了启用SSL的IIS服务器。 The certificate provided to us by our administrator contains only the .cer and .pfb files. 我们的管理员提供给我们的证书仅包含.cer和.pfb文件。 I was able to configure IIS with just the cer file. 我只用cer文件就可以配置IIS。 However, for nodejs, from the internet searches that i've made, it seems that we need a private key (.key) to successfully setup the NodeJS with SSL. 但是,对于nodejs,从我进行的Internet搜索中看来,我们需要一个私钥(.key)才能成功使用SSL设置NodeJS。 Is there anyway i can setup NodeJS with just the .cer or .pfb files? 无论如何,我可以只使用.cer或.pfb文件设置NodeJS吗?

Thanks, 谢谢,

Finally figured it out. 终于想通了。

  1. Export the certificate on MMC. 在MMC上导出证书。 See this link for more info: 有关更多信息,请参见此链接
  2. Follow the procedure from this link 请遵循此链接中的步骤

it will give you a certificate and the key. 它会给您证书和密钥。

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

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