Getting SSL to work properly for a Thin web server

Skip to first unread message


Feb 10, 2015, 2:16:12 PM2/10/15
Hello everyone,

I've got a problem where I'm attempting to enable SSL to work in my Thin web server.

I have implemented the following so far in my web app:-! :host => '', :port => 9090 do |server|
    ssl_options = {
     :cert_chain_file => "C:\\git\\ MyApp\\server.crt",
     :private_key_file => "C:\\git\\ MyApp\\key.key",
    :verify_peer => false
    server.ssl = true
    server.ssl_options = ssl_options

where server.crt is my self signed certificate and key.key is my private key. However I have been unable to get SSL working at all. The only way that I been able to get it to work was to comment out cert_chain_file code private_key_file code and then I would be able to access my app over https. However as you can imagine, this is not at all conducive as regards security of my app.

Can anyone please assist me with this or if you know of a way to get thin working with ssl, please help?

Many thanks

Reply all
Reply to author
0 new messages