-
Notifications
You must be signed in to change notification settings - Fork 11
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
Getting Server error: dispatch(Transport Layer Security Error: Success
#50
Comments
It looks like we're testing this exact use case here: https://github.com/vapor/tls/blob/master/Tests/TLSTests/LiveTests.swift#L169-L180. No idea why it would be working there and not for you. Maybe it has something to do w/ the certificates? If you could submit a method for me to reproduce this that would help a lot. |
Guys, any news? I got the same error on macOS 10.12.6 with new
GET /
Thank you, |
Hey guys, |
@popaaaandrei if you try with these certificates does it work: https://github.com/vapor/tls/blob/master/Tests/TLSTests/Certs.swift The test here seems to be passing so I wonder if it has to do with the certificates you are using. Either way, I would also recommend using Nginx for TLS if you can. |
@tanner0101 the certificates that I used were self-signed. And using my proposal it worked with Plus the errors that are reported in this issue are not related to data not being correctly read, its the fact that |
The test is misleading. The first request seems to succeed (which is covered by the test), but the second and subsequent requests will all fail. |
I am having the same issue, the first request succeed but the subsequent fails. Is there any update/fix or work around for this? |
Use nginx for TLS termination and forgive/forget the unfulfilled promise of doing TLS directly with the Vapor 2 server. |
What I was trying to do was using TLS on my development machine so I can use https://localhost. Is there another way to achieve this without nginx? And also one question (I don't know if this is the right place though). I am deploying my app to Heroku, is still necessary to set |
I'm not aware of any tools that could do it for you, but maybe others are. On Heroku, you must disable the securityLayer and serve HTTP on the port specified by the system, their network stack will handle TLS (both termination and certificate management) automatically. |
Hello,
I'm having some issues getting TLS running Ubuntu 16.04 x64 with Vapor 2.1.2. I've generated TLS certificates using Cloudflare and placed them in the appropriate directory. However, when I start my application and make a request at the proper domain, I get this error:
This is what I'm using for my
servers.json
config in production:I can't figure out what's going on, so any help would be much appreciated. Could it be that Vapor is interpreting a success as an error, since it's saying
Transport Layer Security Error: Success
?Thanks,
Nathan Flurry
The text was updated successfully, but these errors were encountered: