socketify.py icon indicating copy to clipboard operation
socketify.py copied to clipboard

SSL Verify Options

Open wedobetter opened this issue 9 months ago • 1 comments

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

wedobetter avatar May 26 '24 12:05 wedobetter