How to configure Rails with Puma to use SSL?

后端 未结 5 1184
滥情空心
滥情空心 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 06:02

    rails s puma -b 'ssl://0.0.0.0:9292?key=certkey.key&cert=cert.crt&verify_mode=peer&ca=root_bundle.crt

    Just make sure you set the verify_mode=peer.

提交回复
热议问题