$ mojo daemon -l https://*:3000
Server available at https://127.0.0.1:3000
$ curl -k https://127.0.0.1:3000Your Mojo is working!
$ mojo versionCOREPerl (v5.22.1, linux)Mojolicious (8.12, Supervillain)OPTIONALCpanel::JSON::XS 4.04+ (n/a)EV 4.0+ (n/a)IO::Socket::Socks 0.64+ (n/a)IO::Socket::SSL 2.009+ (2.024)Net::DNS::Native 0.15+ (n/a)Role::Tiny 2.000001+ (2.000006)You might want to update your Mojolicious to 8.16!
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious...@googlegroups.com.
To post to this group, send email to mojol...@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/59b0dcdb-c5e2-47e9-9a61-72b9ee3bbd48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Try your test out with a built-in HelloWorld app:$ mojo daemon -l https://*:3000Server available at https://127.0.0.1:3000$ curl -k https://127.0.0.1:3000Your Mojo is working!
I doubt there's a problem with Mojo's SSL implementation as it doesn't really have one -- it relies on IO::Socket::SSL.$ mojo versionCOREPerl (v5.22.1, linux)Mojolicious (8.12, Supervillain)OPTIONALCpanel::JSON::XS 4.04+ (n/a)EV 4.0+ (n/a)IO::Socket::Socks 0.64+ (n/a)IO::Socket::SSL 2.009+ (2.024)Net::DNS::Native 0.15+ (n/a)Role::Tiny 2.000001+ (2.000006)You might want to update your Mojolicious to 8.16!
Make sure everything is up to snuff with IO::Socket::SSL
To unsubscribe from this group and stop receiving emails from it, send an email to mojol...@googlegroups.com.
Make sure everything is up to snuff with IO::Socket::SSLWhat would you suggest I do, specifically?
$ mojo get -k https://127.0.0.1:3000Your Mojo is working!
On Wednesday, May 22, 2019 at 10:21:56 AM UTC-4, Stefan Adams wrote:On Wed, May 22, 2019 at 7:20 AM Celejar <cel...@gmail.com> wrote:Make sure everything is up to snuff with IO::Socket::SSLWhat would you suggest I do, specifically?Unfortunately, I'll be of little help here. Did listening on https for your app ever work on this instance that is currently failing? The latest version of IO::Socket::SSL is 2.066 -- perhaps update? I think IO::Socket::SSL depends on Net::SSLeay, perhaps update it to the latest version 1.88? Of course, it's always a good idea to update Mojolicious to the latest version. Do those one at a time and test after each update. What about updating your openssl library openssl, libssl1.0.0, and libssl-dev? I'm on Ubuntu 16.04 with openssl 1.0.2g.
Thanks. I'm not sure these version are available from the Debian repos, and installing them by hand will take some doing. [I already tried updating one of the perl modules via Debian's dh-make-perl tool, but the resulting package wouldn't install. I've never used raw CPAN.]
Before doing any of that, I'm just curious: openssl, curl, and wget all fail for you... what about trying the mojo useragent?$ mojo get -k https://127.0.0.1:3000Your Mojo is working!
$ mojo get -k https://127.0.0.1:3000
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious...@googlegroups.com.
To post to this group, send email to mojol...@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/cb8237fb-7a77-4ac8-b4ee-add1fb233d33%40googlegroups.com.
You could easily try by installing them to a local::lib with cpanm and temporarily adding the local::lib to your PERL5LIB. This would at least help isolate the problem.$ wget -qO cpanm https://cpanmin.us # or App::cpanminus probably available from repo$ perl ./cpanm -l local Net::SSLeay IO::Socket::SSL$ PERL5LIB=local/lib/perl5 perl app.pl daemon ...-Dan
On Thu, May 23, 2019 at 2:04 PM Celejar <cel...@gmail.com> wrote:
--
On Wednesday, May 22, 2019 at 10:21:56 AM UTC-4, Stefan Adams wrote:On Wed, May 22, 2019 at 7:20 AM Celejar <cel...@gmail.com> wrote:Make sure everything is up to snuff with IO::Socket::SSLWhat would you suggest I do, specifically?Unfortunately, I'll be of little help here. Did listening on https for your app ever work on this instance that is currently failing? The latest version of IO::Socket::SSL is 2.066 -- perhaps update? I think IO::Socket::SSL depends on Net::SSLeay, perhaps update it to the latest version 1.88? Of course, it's always a good idea to update Mojolicious to the latest version. Do those one at a time and test after each update. What about updating your openssl library openssl, libssl1.0.0, and libssl-dev? I'm on Ubuntu 16.04 with openssl 1.0.2g.Thanks. I'm not sure these version are available from the Debian repos, and installing them by hand will take some doing. [I already tried updating one of the perl modules via Debian's dh-make-perl tool, but the resulting package wouldn't install. I've never used raw CPAN.]Before doing any of that, I'm just curious: openssl, curl, and wget all fail for you... what about trying the mojo useragent?$ mojo get -k https://127.0.0.1:3000Your Mojo is working!$ mojo get -k https://127.0.0.1:3000
SSL connect attempt failed
at /usr/share/perl5/Mojolicious/Command/get.pm line 77.
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojol...@googlegroups.com.
You could easily try by installing them to a local::lib with cpanm and temporarily adding the local::lib to your PERL5LIB. This would at least help isolate the problem.$ wget -qO cpanm https://cpanmin.us # or App::cpanminus probably available from repo$ perl ./cpanm -l local Net::SSLeay IO::Socket::SSL$ PERL5LIB=local/lib/perl5 perl app.pl daemon ...
-Dan
On Thu, May 23, 2019 at 2:04 PM Celejar <cel...@gmail.com> wrote:
--
On Wednesday, May 22, 2019 at 10:21:56 AM UTC-4, Stefan Adams wrote:On Wed, May 22, 2019 at 7:20 AM Celejar <cel...@gmail.com> wrote:Make sure everything is up to snuff with IO::Socket::SSLWhat would you suggest I do, specifically?Unfortunately, I'll be of little help here. Did listening on https for your app ever work on this instance that is currently failing? The latest version of IO::Socket::SSL is 2.066 -- perhaps update? I think IO::Socket::SSL depends on Net::SSLeay, perhaps update it to the latest version 1.88? Of course, it's always a good idea to update Mojolicious to the latest version. Do those one at a time and test after each update. What about updating your openssl library openssl, libssl1.0.0, and libssl-dev? I'm on Ubuntu 16.04 with openssl 1.0.2g.Thanks. I'm not sure these version are available from the Debian repos, and installing them by hand will take some doing. [I already tried updating one of the perl modules via Debian's dh-make-perl tool, but the resulting package wouldn't install. I've never used raw CPAN.]Before doing any of that, I'm just curious: openssl, curl, and wget all fail for you... what about trying the mojo useragent?$ mojo get -k https://127.0.0.1:3000Your Mojo is working!$ mojo get -k https://127.0.0.1:3000
SSL connect attempt failed
at /usr/share/perl5/Mojolicious/Command/get.pm line 77.
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojol...@googlegroups.com.
You could easily try by installing them to a local::lib with cpanm and temporarily adding the local::lib to your PERL5LIB. This would at least help isolate the problem.$ wget -qO cpanm https://cpanmin.us # or App::cpanminus probably available from repo$ perl ./cpanm -l local Net::SSLeay IO::Socket::SSL$ PERL5LIB=local/lib/perl5 perl app.pl daemon ..
-Dan
On Thu, May 23, 2019 at 2:04 PM Celejar <cel...@gmail.com> wrote:
--
On Wednesday, May 22, 2019 at 10:21:56 AM UTC-4, Stefan Adams wrote:On Wed, May 22, 2019 at 7:20 AM Celejar <cel...@gmail.com> wrote:Make sure everything is up to snuff with IO::Socket::SSLWhat would you suggest I do, specifically?Unfortunately, I'll be of little help here. Did listening on https for your app ever work on this instance that is currently failing? The latest version of IO::Socket::SSL is 2.066 -- perhaps update? I think IO::Socket::SSL depends on Net::SSLeay, perhaps update it to the latest version 1.88? Of course, it's always a good idea to update Mojolicious to the latest version. Do those one at a time and test after each update. What about updating your openssl library openssl, libssl1.0.0, and libssl-dev? I'm on Ubuntu 16.04 with openssl 1.0.2g.Thanks. I'm not sure these version are available from the Debian repos, and installing them by hand will take some doing. [I already tried updating one of the perl modules via Debian's dh-make-perl tool, but the resulting package wouldn't install. I've never used raw CPAN.]Before doing any of that, I'm just curious: openssl, curl, and wget all fail for you... what about trying the mojo useragent?$ mojo get -k https://127.0.0.1:3000Your Mojo is working!$ mojo get -k https://127.0.0.1:3000
SSL connect attempt failed
at /usr/share/perl5/Mojolicious/Command/get.pm line 77.
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojol...@googlegroups.com.
Hi,
On mardi 21 mai 2019 19:42:35 CEST, Celejar wrote:
...
> ~$ openssl s_client -connect localhost:3000
> CONNECTED(00000003)
> write:errno=104
> ---
> no peer certificate available
This is usually the result when the server does not send a certificate
Did you generate and configure a certificate and key ?
Example (on Debian buster/testing) :
...
$ openssl req -x509 -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem
-days 2 -sha256 -subj '/CN=localhost'
$ mojo daemon -l 'https://*:3000?cert=cert.pem&key=key.pem'
$ curl -k https://localhost:3000
Your Mojo is working!
I see that Debian does ship the default certificate, in:/usr/share/perl5/Mojo/IOLoop/resources/server.crt
/usr/share/perl5/Mojo/IOLoop/resources/server.keyHas Debian disabled it, or is there something that one needs to do to enable it? The documentation implies that running the server as I did should just work with the built-in certificate?