Show More
@@ -409,12 +409,18 b' def wrapsocket(sock, keyfile, certfile, ' | |||
|
409 | 409 | # a hint to the user. |
|
410 | 410 | # Only modern ssl module exposes SSLContext.get_ca_certs() so we can |
|
411 | 411 | # only show this warning if modern ssl is available. |
|
412 | # The exception handler is here because of | |
|
413 | # https://bugs.python.org/issue20916. | |
|
414 | try: | |
|
412 | 415 | if (caloaded and settings['verifymode'] == ssl.CERT_REQUIRED and |
|
413 | 416 | modernssl and not sslcontext.get_ca_certs()): |
|
414 |
ui.warn(_('(an attempt was made to load CA certificates but |
|
|
415 | 'were loaded; see ' | |
|
416 |
'https://mercurial-scm.org/wiki/SecureConnections |
|
|
417 |
'how to configure Mercurial to avoid this |
|
|
417 | ui.warn(_('(an attempt was made to load CA certificates but ' | |
|
418 | 'none were loaded; see ' | |
|
419 | 'https://mercurial-scm.org/wiki/SecureConnections ' | |
|
420 | 'for how to configure Mercurial to avoid this ' | |
|
421 | 'error)\n')) | |
|
422 | except ssl.SSLError: | |
|
423 | pass | |
|
418 | 424 | # Try to print more helpful error messages for known failures. |
|
419 | 425 | if util.safehasattr(e, 'reason'): |
|
420 | 426 | # This error occurs when the client and server don't share a |
General Comments 0
You need to be logged in to leave comments.
Login now