6
ローカルのpumaサーバーを実行していて、SSLでロードするリソースを取得できません。Ruby/Pumaを使用したローカルSSL
私はローカル署名付き証明書を持っています。
私は、次の設定でサーバを実行しようとしている:
今puma -b 'ssl://127.0.0.1:9292?key=/path/to/certs/localhost.unecrypted.key&cert=/path/to/certs/localhost.crt'
、私はhttps://localhost:9292
またはhttps://127.0.0.1:9292
を訪問したときに、ブラウザだけで回転し、サーバーからの応答がありません。リソースは返されません。私はHTMLのタイトルタグを2回表示していますが、ほとんどの場合、何も得られません。
他のアイデア?本当にこのアプリのhttpsバージョンをローカルで実行する必要があり、どうやってそれを行うのか分かりません。
編集:inital要求がログに記録されますが、応答がないされています
127.0.0.1 - - [04/Sep/2013 11:29:15] "GET/HTTP/1.1" 200 1265 0.0397
時々私は、このエラーが発生します。
013-09-04 11:30:20 -0400: Read error: #<Errno::EPIPE: Broken pipe>
/Users/wesbos/.rvm/gems/[email protected]/gems/puma-2.3.2/lib/puma/minissl.rb:56:in `write'
/Users/wesbos/.rvm/gems/[email protected]/gems/puma-2.3.2/lib/puma/minissl.rb:56:in `write'
/Users/wesbos/.rvm/gems/[email protected]/gems/puma-2.3.2/lib/puma/server.rb:635:in `fast_write'
/Users/wesbos/.rvm/gems/[email protected]/gems/puma-2.3.2/lib/puma/server.rb:484:in `handle_request'
/Users/wesbos/.rvm/gems/[email protected]/gems/puma-2.3.2/lib/puma/server.rb:248:in `process_client'
/Users/wesbos/.rvm/gems/[email protected]/gems/puma-2.3.2/lib/puma/server.rb:147:in `block in run'
/Users/wesbos/.rvm/gems/[email protected]/gems/puma-2.3.2/lib/puma/thread_pool.rb:92:in `call'
/Users/wesbos/.rvm/gems/[email protected]/gems/puma-2.3.2/lib/puma/thread_pool.rb:92:in `block in spawn_thread'