On Wednesday, May 29, 2019 at 1:07:50 PM UTC-4, Vincent Tondellier wrote: > > 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! > > Thanks - that works! But I shouldn't have to do this - according to the documentation: Mojolicious contains a very portable non-blocking I/O HTTP and WebSocket server with Mojo::Server::Daemon ... Another huge advantage is that it supports TLS and WebSockets out of the box, a development certificate for testing purposes is built right in, so it just works, but you can specify all listen locations supported by "listen" in Mojo::Server::Daemon. $ ./script/my_app daemon -l https://[::]:3000 Server available at https://[::]:3000 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.key Has 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? -- 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 [email protected]. To post to this group, send email to [email protected]. 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/4c4cec6a-acf3-46ad-bfe7-10430e527799%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
