-
Notifications
You must be signed in to change notification settings - Fork 267
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
Feature Request - Daphne Intermediate certificate support #354
Comments
Hi!
I'm happy to look at PRs adding whatever options we need to be able to specify certs (or an SSLContext... 🤔) — but I didn't have time yet to look into exactly what that might entail. If you want to outline the required changes as a starting point that would be awesome! Thanks. 👍 |
Hi!
Well, I don't know much about daphne's source code, but as I mentioned before, twisted has support for the certs, so maybe the midfield between daphne and twisted is not working properly. |
@Enzodtz It's most likely that we're just not exposing the option. (I didn't get a chance to look into it yet.) |
Exactly. |
Hey, So, I was trying to find where the problem is located to maybe fix it, and I think I got something: At the first post on this issue, I mentioned this article which I was thinking that it says that it's possible to pass the But actually, when taking a real look at daphne's source code I figured that it's using So, I think that this is not a daphne's issue, but twisted's one, since it's just passing the raw I don't know much about twisted, speacially about those functions, about why the argument is allowed for one but not for other and about the diference between them. Then, my question is if we can do something on this in daphne's side, or maybe if we should talk with twisted team. Thanks. |
Closing this as it's essentially an issue about twisted endpoint strings. |
Issues are for concrete, actionable bugs and feature requests only - if you're just asking for debugging help or technical support we have to direct you elsewhere. If you just have questions or support requests please use:
We have to limit this because of limited volunteer time to respond to issues!
Please also try and include, if you can:
pip freeze
output showing your package versionsOS:
Ubuntu 16.04.7 LTS
pip freeze
:Description
I'm using Daphne to host django, and I need to connect a Flutter aplication via Rest API. Locally via
HTTP
, this is working fine, I'm able to do requests and send responses. But when I test this on production, an error is raised:You can see the SSL verification here.
This is telling me that the secure communication between the app and the server is not working properly, due to the certificate.
So, I tried to install the intermediate certificates, passing
caCertsDir=/etc/ssl/certs
. But when I run the server, it raises the following error:Then, I tried to join the
certKey
file with the intermediate certificates that I have. I got 2 scenarios:1. Intermediate certs before the original
certKey
contentThis, raises the error:
Of course this does not make sense, since we don't have access to the private key of an intermediate certificate.
2. Intermediate certs after the original
certKey
contentThis time, I got no errors, but the handshake error continued to happen in the app, and the SSL verification contiunued to show the same results.
Actually, Twisted has support for
caCertsDir
, but Daphne seems not to. (Twisted Reference)Is there something that I can do to add these certificates? Thanks
The text was updated successfully, but these errors were encountered: