Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Default SSL setup gives SSL_ERROR_RX_RECORD_TOO_LONG in Firefox #266

Open
KhazAkar opened this issue Feb 11, 2024 · 1 comment
Open
Assignees

Comments

@KhazAkar
Copy link

Describe the bug
When trying to connect to LAMP stack over HTTPS, SSL_ERROR_RX_RECORD_TOO_LONG happens

which Branch / PHP Version are you using ?
php83

Steps to reproduce

  1. Try to open page using https, straight from repo

Expected behavior
No SSL error

Screenshots
image

Desktop (please complete the following information):

  • OS: popOS 22.04
  • Browser Firefox
  • Docker Version:
docker -v
Docker version 25.0.3, build f417435

dockerd -v
Docker version 25.0.3, build 4debf41

docker-compose -v
Docker Compose version v2.24.5

Additional context
Server runs in KVM, slackware64-current using docker build from their site, 'statically' built.

@blizzardengle
Copy link
Contributor

blizzardengle commented Oct 24, 2024

👋 I was the one who added SSL support to the project. To clarify SSL (HTTPS) support is disabled by default and requires manual setup.

An SSL_ERROR_RX_RECORD_TOO_LONG error often occurs when you instruct the server (Apache in this case) to listen for SSL/TLS connections on a port the client is trying to connect to, but you are sending back an HTTP response instead. This HTTP response is then interpreted as the SSL/TLS handshake and fails.

You should troubleshoot and verify the following:

  • Created valid SSL certificates and placed them in the correct location.
  • Adjusted the permissions of the SSL certificates if on/in a Linux environment.
  • Correctly configured Apache to use these certificates in the vhost file including using the correct port.
  • Check any proxies you are using or are between you and the KVM, they could be routing traffic incorrectly.

This Stack Overflow post might help with troubleshooting Apache. Here is the configuration instructions for SSL in the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants