Due my client requirements I need to run my rails application on Windows Server using HTTPS protocol. I have created my certs, and attach them to my port with
netsh http add sslcert ipport=0.0.0.0:7892 certhash={my_cert_print} appid={random_guid}
I also have added the ssl option on my development.rb file:
config.force_ssl = trueBut when I execute my site with
rails s -p 7892 -e development --binding=0.0.0.0And connect from outside using
https://server_ip:7892I get this error from puma:
2024-06-12 17:53:01 -0300: HTTP parse error, malformed request (): #<Puma::HttpParserError: Invalid HTTP format, parsing fails.> If I try with thin server
thin start -p 7892 --sslI get
terminate called after throwing an instance of 'std::runtime_error' what(): Encryption not available on this event-machineOpenSSL is installed on the server. What else can I do? (To leave Windows Server is not an option, sadly)