Show More
@@ -2074,7 +2074,7 b' def debugssl(ui, repo, source=None, **op' | |||
|
2074 | 2074 | of the SSL error is likely another issue. |
|
2075 | 2075 | ''' |
|
2076 | 2076 | if pycompat.osname != 'nt': |
|
2077 |
raise error.Abort(_(' |
|
|
2077 | raise error.Abort(_('certificate chain building is only possible on ' | |
|
2078 | 2078 | 'Windows')) |
|
2079 | 2079 | |
|
2080 | 2080 | if not source: |
@@ -2092,7 +2092,7 b' def debugssl(ui, repo, source=None, **op' | |||
|
2092 | 2092 | elif url.scheme == 'ssh': |
|
2093 | 2093 | addr = (url.host, url.port or 22) |
|
2094 | 2094 | else: |
|
2095 |
raise error.Abort(_(" |
|
|
2095 | raise error.Abort(_("only https and ssh connections are supported")) | |
|
2096 | 2096 | |
|
2097 | 2097 | from . import win32 |
|
2098 | 2098 | |
@@ -2103,19 +2103,19 b' def debugssl(ui, repo, source=None, **op' | |||
|
2103 | 2103 | s.connect(addr) |
|
2104 | 2104 | cert = s.getpeercert(True) |
|
2105 | 2105 | |
|
2106 |
ui.status(_(' |
|
|
2106 | ui.status(_('checking the certificate chain for %s\n') % url.host) | |
|
2107 | 2107 | |
|
2108 | 2108 | complete = win32.checkcertificatechain(cert, build=False) |
|
2109 | 2109 | |
|
2110 | 2110 | if not complete: |
|
2111 |
ui.status(_(' |
|
|
2111 | ui.status(_('certificate chain is incomplete, updating... ')) | |
|
2112 | 2112 | |
|
2113 | 2113 | if not win32.checkcertificatechain(cert): |
|
2114 |
ui.status(_(' |
|
|
2114 | ui.status(_('failed.\n')) | |
|
2115 | 2115 | else: |
|
2116 |
ui.status(_(' |
|
|
2116 | ui.status(_('done.\n')) | |
|
2117 | 2117 | else: |
|
2118 |
ui.status(_(' |
|
|
2118 | ui.status(_('full certificate chain is available\n')) | |
|
2119 | 2119 | finally: |
|
2120 | 2120 | s.close() |
|
2121 | 2121 |
General Comments 0
You need to be logged in to leave comments.
Login now