-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Commit 62c3b8c
crypto/x509: subject/issuer hint fallback for unknown-authority errors
Because errors like:
certificate signed by unknown authority
make it difficult to distinguish between "certificate is unexpected"
and "my local trust store is missing something I expected". This
commit adds a fallback with summaries for the subject and issuer when
hintErr is missing (e.g. because nothing in the local trust store
matched). That should also help figure out which of many possible
certificates need fixing when trust-management breaks down.1 parent 00753d5 commit 62c3b8c
1 file changed
+21
-9
lines changedLines changed: 21 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | + | ||
9 | 10 |
| |
10 | 11 |
| |
12 | + | ||
11 | 13 |
| |
12 | 14 |
| |
13 | 15 |
| |
| |||
152 | 154 |
| |
153 | 155 |
| |
154 | 156 |
| |
157 | + | ||
158 | + | ||
159 | + | ||
160 | + | ||
161 | + | ||
162 | + | ||
163 | + | ||
164 | + | ||
165 | + | ||
166 | + | ||
167 | + | ||
168 | + | ||
169 | + | ||
170 | + | ||
171 | + | ||
172 | + | ||
155 | 173 |
| |
156 | 174 |
| |
157 | 175 |
| |
158 | - | ||
159 | - | ||
160 | - | ||
161 | - | ||
162 | - | ||
163 | - | ||
164 | - | ||
165 | - | ||
166 | - | ||
176 | + | ||
177 | + | ||
178 | + | ||
167 | 179 |
| |
168 | 180 |
| |
169 | 181 |
| |
|
0 commit comments