Using .cer certificates with HTTPS on Windows

14 views
Skip to first unread message

Brandon Woodson

unread,
Apr 27, 2017, 12:12:30 PM4/27/17
to Mojolicious
Greetings,

[ Environment setup ]
Windows 7 x64
ActiveState Perl 5.20.2
Mojolicious 7.11
Application is Mojolicious::Lite

I'm new to the world of using certificates and HTTPS. I was provided a cert in .cer format as well as a CA cert in .cer. To test I put both certs in the same folder as my a script.


Running with the built in test certificate works just fine.
perl .\app.pl daemon -l 'https://*:3000"

When I try to launch it with what I think are the correct parameters to use the certs I was given like this:
perl .\app.pl daemon -l 'https://*:3000?cert=.\cert.cer&ca=.\ca.cer'

It runs, but when visited in a web browser I get the error 'ERR_CONNECTION_CLOSED'.

Google seems to be short on results for people even trying to use Mojolicious on Windows. I tried running this on Linux (Ubuntu 16.04 w/ Perl...@5.22.1 + Mojol...@7.11) and I get the same results. Any help would be greatly appreciated!
Reply all
Reply to author
Forward
0 new messages