HTTPS (TLS/SSL) server on Nitrous.IO

让人想犯罪 __ 提交于 2019-12-22 11:34:04

问题


May I ask how to create TLS server on Nitrous.IO Boxes? I think what I have to get for that at least are cert.pem and key.pem or something like that.


回答1:


Depending on what region you are in, you can get SSL authentication automatically. Will that suffice?

http://help.nitrous.io/ssl/




回答2:


For me, https works out of the box.

I set my server to listen on port 3000, configured the Nitrous preview port to 3000, and then I can get access via:

  • http://silly-name-121212.nitrousapp.com:3000/
  • http://silly-name-121212.nitrousapp.com/
  • https://silly-name-121212.nitrousapp.com/

(This URL is just for illustration; your URL will differ.)

Within the application itself, you can X-Forwarded-Proto request header will tell you if the request was http or https.



来源:https://stackoverflow.com/questions/17853700/https-tls-ssl-server-on-nitrous-io

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!