SSL error for Perl/Mojolicious Apps
bislink opened this issue · 12 comments
wget https://spanel.gnani.xyz:44042
gives the following error.
GnuTLS: Error in the pull function.
Unable to establish SSL connection.
Apart from this, I cannot access the/any Mojolicious app that is running on a custom port with SSL whereas https://spanel.gnani.xyz
(apache2) shows no error.
Perl Version 5.32.1 on Raspberry Pi 4 with 8 GB RAM.
On Brave and Edge, I get error : ERR_CONNECTION_RESET
Reinstalling both wget
and openssl
did nothing.
appreciate help fixing this issue.
Seems more like a problem with the server because it doesn't seem to work from Ubuntu or online SSL checking tools either.
I get the same result as @XECDesign - it's not a Raspberry Pi-specific issue, and since the browsers also fail it's looking a lot like a server problem.
Thanks for your speedy response.
Server problem: which one? openssl or apache2 or some other?
wget https://spanel.gnani.xyz:44042
is not served by apache2 but Perl/Mojolicious/HypnoToad
Error after reinstalling libmojoicious-perl
for wget --spider https://spanel.gnani.xyz:44042
:
GnuTLS: The TLS connection was non-properly terminated.
Unable to establish SSL connection.
All clients seem to agree that https://spanel.gnani.xyz:44042 is not sending any data - what do you expect us to do?
Same app without SSL seems to work: http://spanel.gnani.xyz:44040
Are you actually telling us that spanel.gnani.xyz is a site hosted on a Pi 4?
Yes. I am running multiple sites on a Pi 4 8 GB RAM with apache2 and some Perl/Mojo apps with custom ports!
update: with a public IP
Read the server log, check your certificate, etc.
The same certificate works ok for apache2. https://spanel.gnani.xyz
It doesn't look as though you are alone - I found this similar error (and the Mojolicious repo): mojolicious/mojo#1876