简体   繁体   中英

Setting up SSL for node.js with a private key

I've setup our IIS server with SSL enabled. The certificate provided to us by our administrator contains only the .cer and .pfb files. I was able to configure IIS with just the cer file. 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. Is there anyway i can setup NodeJS with just the .cer or .pfb files?

Thanks,

Finally figured it out.

  1. Export the certificate on MMC. See this link for more info:
  2. Follow the procedure from this link

it will give you a certificate and the key.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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