Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

SSL error for Perl/Mojolicious Apps #240

Closed
bislink opened this issue Oct 20, 2022 · 12 comments
Closed

SSL error for Perl/Mojolicious Apps #240

bislink opened this issue Oct 20, 2022 · 12 comments

Comments

@bislink
Copy link

bislink commented Oct 20, 2022

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.

@XECDesign
Copy link

Seems more like a problem with the server because it doesn't seem to work from Ubuntu or online SSL checking tools either.

@pelwell
Copy link

pelwell commented Oct 20, 2022

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.

@bislink
Copy link
Author

bislink commented Oct 20, 2022

Thanks for your speedy response.

Server problem: which one? openssl or apache2 or some other?

@bislink
Copy link
Author

bislink commented Oct 20, 2022

wget https://spanel.gnani.xyz:44042 is not served by apache2 but Perl/Mojolicious/HypnoToad

@bislink
Copy link
Author

bislink commented Oct 20, 2022

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.

@pelwell
Copy link

pelwell commented Oct 20, 2022

All clients seem to agree that https://spanel.gnani.xyz:44042 is not sending any data - what do you expect us to do?

@bislink
Copy link
Author

bislink commented Oct 20, 2022

Same app without SSL seems to work: http://spanel.gnani.xyz:44040

@pelwell
Copy link

pelwell commented Oct 20, 2022

Are you actually telling us that spanel.gnani.xyz is a site hosted on a Pi 4?

@bislink
Copy link
Author

bislink commented Oct 20, 2022

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

@pelwell
Copy link

pelwell commented Oct 20, 2022

Read the server log, check your certificate, etc.

@bislink
Copy link
Author

bislink commented Oct 20, 2022

The same certificate works ok for apache2. https://spanel.gnani.xyz

@pelwell
Copy link

pelwell commented Oct 20, 2022

It doesn't look as though you are alone - I found this similar error (and the Mojolicious repo): mojolicious/mojo#1876

@pelwell pelwell closed this as not planned Won't fix, can't repro, duplicate, stale Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants