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

Secure Connection Failed #1503

Closed
DeepaliMahalde922 opened this issue Jan 18, 2018 · 0 comments
Closed

Secure Connection Failed #1503

DeepaliMahalde922 opened this issue Jan 18, 2018 · 0 comments

Comments

@DeepaliMahalde922
Copy link

DeepaliMahalde922 commented Jan 18, 2018

Steps to reproduce

In testapp.conf define server definition:
server {
listen *:3009;
listen 443 ssl;
server_name www.abctest.com;

    ssl_certificate /etc/letsencrypt/live/abctest.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/abctest.com/privkey.pem;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers HIGH:!aNULL:!MD5;

    # Turn on Passenger
    passenger_enabled on;
    passenger_ruby /usr/local/rvm/gems/ruby-2.3.1/wrappers/ruby;

    location /testapp/ {
        root   /var/www/html/rails_app/testapp/public;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
        proxy_redirect off;
        proxy_pass http://0.0.0.0:3009;
    }

}

Error: An error occurred during a connection to raghuwanshi.com. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG
Error on console: HTTP parse error, malformed request (): #<Puma::HttpParserError: Invalid HTTP format, parsing fails

I don't know why it happens. I have verified SSL certificate and pointing my app to the domain without https properly. Where am I wrong?

I need to certify my app with SSL.

System configuration
Ruby version: 2.3.1
Rails version: 5.1.4
Puma version: 3.7

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

2 participants