This PR aims to introduce support for PyOpenSSL in the paho.mqtt.python library. The primary focus is on enabling the provision of a custom SSL.Context within the MQTT client. This enhancement is essential for ensuring compatibility with PKCS#11, as discussed in issue #646.
Changes:
Added functionality to provide a custom SSL.Context within the MQTT client.
Utilized the tls_set_context method to facilitate compatibility with both ssl.SSLContext and SSL.Context.
Purpose:
The introduction of PyOpenSSL support serves to broaden the library's compatibility spectrum, particularly for scenarios involving PKCS#11 integration. This enhancement enhances the versatility and usability of the paho.mqtt.python library.
This PR aims to introduce support for PyOpenSSL in the
paho.mqtt.python
library. The primary focus is on enabling the provision of a customSSL.Context
within the MQTT client. This enhancement is essential for ensuring compatibility with PKCS#11, as discussed in issue #646.Changes:
SSL.Context
within the MQTT client.tls_set_context
method to facilitate compatibility with bothssl.SSLContext
andSSL.Context
.Purpose:
The introduction of PyOpenSSL support serves to broaden the library's compatibility spectrum, particularly for scenarios involving PKCS#11 integration. This enhancement enhances the versatility and usability of the
paho.mqtt.python
library.Related Issue:
646
Related Work:
Notes for Reviewers:
Your feedback on the implementation approach and any suggestions for further improvements are highly appreciated.