socketify.py
socketify.py copied to clipboard
SSL Verify Options
Is your feature request related to a problem? Please describe. No
Describe the solution you'd like Make use of standard ssl verify options ssl.CERT_NONE ssl.CERT_OPTIONAL ssl.CERT_REQUIRED
Additional context Allow for standard SSL client authentication options
Example:
import ssl
from socketing import App, AppOptions
app = App(
AppOptions(
ca_file_name="ssl/certs/ca.crt",
key_file_name="ssl/private/server.key",
cert_file_name="ssl/certs/server.crt",
passphrase="password",
dh_params_file_name="ssl/private/dh.pem"
ssl_verify=ssl.CERT_REQUIRED
)
)
Thank you