[GH-ISSUE #361] SSL_ERROR_RX_RECORD_TOO_LONG #237

Open
opened 2026-02-25 22:32:55 +03:00 by kerem · 6 comments
Owner

Originally created by @Nv7-GitHub on GitHub (Apr 6, 2021).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/361

I made a certificate using mkcert -install. I then went to https://localhost:8080, using the test webserver I was running. It worked with http://localhost:8080, but not with https://localhost:8080. It gave me the error SSL_ERROR_RX_RECORD_TOO_LONG. I have attached a screenshot.
It seems like the SSL certificate was successfully created though, I have also attached a screenshot.
Screen Shot 2021-04-05 at 9 43 31 PM

Screen Shot 2021-04-05 at 9 42 39 PM
Originally created by @Nv7-GitHub on GitHub (Apr 6, 2021). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/361 I made a certificate using `mkcert -install`. I then went to `https://localhost:8080`, using the test webserver I was running. It worked with `http://localhost:8080`, but not with `https://localhost:8080`. It gave me the error `SSL_ERROR_RX_RECORD_TOO_LONG`. I have attached a screenshot. It seems like the SSL certificate was successfully created though, I have also attached a screenshot. <img width="618" alt="Screen Shot 2021-04-05 at 9 43 31 PM" src="https://user-images.githubusercontent.com/50369270/113659980-0891e680-9658-11eb-9eb2-a654a32ffec9.png"> <img width="897" alt="Screen Shot 2021-04-05 at 9 42 39 PM" src="https://user-images.githubusercontent.com/50369270/113659898-df715600-9657-11eb-84b5-5211b4f85f5b.png">
Author
Owner

@nazmulpcc commented on GitHub (Apr 10, 2021):

Having the same issue. I am generating the certificate from a dockerized Ubuntu 20.4 and my host system is Manjaro Linux. I am using mkcert 1.1.2. Also tried 1.4.3

<!-- gh-comment-id:817197793 --> @nazmulpcc commented on GitHub (Apr 10, 2021): Having the same issue. I am generating the certificate from a dockerized Ubuntu 20.4 and my host system is Manjaro Linux. I am using mkcert 1.1.2. Also tried 1.4.3
Author
Owner

@kenricashe commented on GitHub (May 26, 2021):

Same here using 1.4.3 in Ubuntu 20.10 with Apache 2.4.46. I followed the instructions from Chandan Kumar and had no errors until trying to actually load in Firefox.

<!-- gh-comment-id:849168709 --> @kenricashe commented on GitHub (May 26, 2021): Same here using 1.4.3 in Ubuntu 20.10 with Apache 2.4.46. I followed the instructions from [Chandan Kumar](https://geekflare.com/local-dev-environment-ssl/) and had no errors until trying to actually load in Firefox.
Author
Owner

@kenricashe commented on GitHub (May 27, 2021):

Found my solution!

Just had to configure support for TLS 1.2 and 1.3 in Apache2.

<!-- gh-comment-id:849323238 --> @kenricashe commented on GitHub (May 27, 2021): Found my solution! Just had to [configure support for TLS 1.2 and 1.3 in Apache2](https://tecadmin.net/enable-tls-version-apache/).
Author
Owner

@kolchurinvv commented on GitHub (Oct 11, 2021):

Also have this issue. mkcert version 1.4.3; mac osx 11.6 (20G165); Firefox Developer Edition 94.0b4 (64-bit)

<!-- gh-comment-id:940425767 --> @kolchurinvv commented on GitHub (Oct 11, 2021): Also have this issue. mkcert version 1.4.3; mac osx 11.6 (20G165); Firefox Developer Edition 94.0b4 (64-bit)
Author
Owner

@ivanjaros commented on GitHub (Dec 19, 2021):

yep, same problem on windows 10 and ff 75.0.2 . i have built from source(go). last commit was in february.

<!-- gh-comment-id:997426483 --> @ivanjaros commented on GitHub (Dec 19, 2021): yep, same problem on windows 10 and ff 75.0.2 . i have built from source(go). last commit was in february.
Author
Owner

@dmitryuk commented on GitHub (Dec 8, 2025):

same issue, but finally found I missed to add ssl flag within nginx config

Image
<!-- gh-comment-id:3627290302 --> @dmitryuk commented on GitHub (Dec 8, 2025): same issue, but finally found I missed to add ssl flag within nginx config <img width="359" height="96" alt="Image" src="https://github.com/user-attachments/assets/8d0f86b9-22a2-4e6f-befb-3990cd5af567" />
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mkcert#237
No description provided.