Show More
@@ -432,6 +432,16 b' def _plainapplepython():' | |||||
432 |
|
432 | |||
433 | def _defaultcacerts(ui): |
|
433 | def _defaultcacerts(ui): | |
434 | """return path to default CA certificates or None.""" |
|
434 | """return path to default CA certificates or None.""" | |
|
435 | # The "certifi" Python package provides certificates. If it is installed, | |||
|
436 | # assume the user intends it to be used and use it. | |||
|
437 | try: | |||
|
438 | import certifi | |||
|
439 | certs = certifi.where() | |||
|
440 | ui.debug('using ca certificates from certifi\n') | |||
|
441 | return certs | |||
|
442 | except ImportError: | |||
|
443 | pass | |||
|
444 | ||||
435 | if _plainapplepython(): |
|
445 | if _plainapplepython(): | |
436 | dummycert = os.path.join(os.path.dirname(__file__), 'dummycert.pem') |
|
446 | dummycert = os.path.join(os.path.dirname(__file__), 'dummycert.pem') | |
437 | if os.path.exists(dummycert): |
|
447 | if os.path.exists(dummycert): |
General Comments 0
You need to be logged in to leave comments.
Login now