Closed MuhammadZeeshan34 closed 2 years ago
It looks like there's a long standing open issue for this.
https://www.twistedmatrix.com/trac/ticket/3516
I'd suggested asking on the twisted mailing list, what the suggested approach is.
Given that there is nothing we can do about this in daphne I am closing this issue. I also do not think it would be a good idea to supply specifying the passphrase via -e
, this would leak via the process list and would be visible to all users on the system.
Hi,
I am using daphne to serve django channels ( websockets ). Nginx and gunicorn both are configured to serve securely using SSL.
I am running into the error while configuring SSL with the daphne. I have provided the privateKey and certKey paths while starting the daphne service. However, there is no option to pass the passphrase as per twisted documentation
My privateKey and certKey are protected by the key that is why daphne serve is unable to start and I am getting this error.
This is how I am passing the ssl cert and private key in my daphne.service
_ExecStart=/home/bs/es/bs/bin/python /home/bs/es/bs/bin/daphne -e ssl:8001:privateKey=/etc/ssl/certs/www.bs.com.key:certKey=/etc/ssl/certs/www_bs_com.crt es.asgi:application_
This is the error log from daphne
Any suggestions or mitigations to fix this? Thanks