Closed amolkul closed 11 years ago
--ssl= is blank. I needs to be set to some value. That should probably be fixed since the value is only used to indicate you want to ssl_cert and ssl_privkey
If I give it some value like say 'true', it gives following error and quits. The service does not start. Command : twistd -r epoll -l /var/log/punjab.log punjab -v --ssl=true --ssl_cert=/root/punjab_cacert.pem --ssl_privkey=/root/punjab_privkey.pem
/usr/lib64/python2.6/site-packages/twisted/words/protocols/jabber/sasl_mechanisms.py:10: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5, binascii, random, time, os
Traceback (most recent call last):
File "/usr/bin/twistd", line 21, in
What version of twisted are you running?
Sorry, my bad. I was using the twistd rpms that got installed using yum. I did not cross check their version with the install.txt in punjab.
I'm running punjab in ssl mode using following command : twistd -r epoll -l /var/log/punjab.log punjab -v --ssl= --ssl_cert=/root/punjab_cacert.pem --ssl_privkey=/root/punjab_privkey.pem
It starts properly, but in log there is no indication that it has started in ssl mode. It is listening on 5280 port. When I try to connect to punjab using openssl, it hangs (i.e openssl hangs without any output) openssl s_client -connect 127.0.0.1:5280
Is there any mistake in my command above ? The certificates are self signed certificates.