generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 209
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem?
I dislike certifi because it makes managing self-signed certificates difficult. I would prefer to use the system certificate store instead.
What solution would you like?
I believe the most straightforward solution would be to use ca_certs=None if it is explicitly set. Here's what I mean: change this
# Convert all sentinel values to their actual default
# values if not using an SSLContext.
if verify_certs is VERIFY_CERTS_DEFAULT:
verify_certs = True
if ssl_show_warn is SSL_SHOW_WARN_DEFAULT:
ssl_show_warn = True
ca_certs = self.default_ca_certs() if ca_certs is None else ca_certs
to this
```python
# Convert all sentinel values to their actual default
# values if not using an SSLContext.
if verify_certs is VERIFY_CERTS_DEFAULT:
verify_certs = True
if ssl_show_warn is SSL_SHOW_WARN_DEFAULT:
ssl_show_warn = True
ca_certs = self.default_ca_certs() if ca_certs is CA_CERTS_DEFAULT else ca_certs
What alternatives have you considered?
I can't think of any other viable solutions.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request