How to configure Rails with Puma to use SSL?

后端 未结 5 1194
滥情空心
滥情空心 2020-12-31 05:22

I only found how to start puma using SSL:

$ puma -b \'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert\'

However, there is no descri

5条回答
  •  我在风中等你
    2020-12-31 06:02

    while we are using combo Nginx+PhusionPassenger as well. You cant specify Chain cert file in nginx either. The trick is to bundle all certs within one certificate and then set the new certificate file as a certificate in your server configuration. You will find more information in nginx documentation. Check SLL Certificate Chains section.

    cat www.example.com.crt bundle.crt > www.example.com.chained.crt
    

    Hope it helped.

提交回复
热议问题