Closed tkzv closed 3 years ago
You would think that cert checks would be part of the SSLContext in the ssl module, and while I did see mention of cert expiry, I couldn't find a flag that actually made it work for me (entirely likely I've missed something). So I've added some functionality to check the cert expiry - if PyOpenSSL is installed. Implemented here: https://github.com/jasonrbriggs/stomp.py/commit/e97c19097e1939a7f83ce138b47308ae34b4a977 Tested here: https://github.com/jasonrbriggs/stomp.py/commit/ff3d391efa9e87e8672374564d07c2514a775f84 Will be going into the next release...
To reproduce, enable STOMP+SSL in Apache ActiveMQ with default dummy certificates and connect to it with a CLI client:
There are no errors, everything works fine, despite the certificate having expired in 2007. This is wrong.
To enable SSL in ActiveMQ, add to activemq.xml: inside
<broker ...> </broker>
tags:inside
<transportConnectors> ... </transportConnectors>
tags:in jetty.xml uncomment the following: