Commit 3d78630
support HTTPS/TLS. (#946)
* support HTTPS/TLS.
* Handling Andy's review comments
1.A better description of what's new.
2.Modify the parameter order of the start_wsgi_server method to maintain forward compatibility.
3.Enable authentication mode when safe.
* revert tls_auth_handler func.
* use "None" indicate "not provided".
* TLS: Improved error handling; Documented capath
* Update parameter names to make clear they are used to verify client certificates.
* - Rename the `insecure_skip_verify` parameter to `client_auth_required`.
- Update `_get_ssl_ctx` func, default not to set `ssl_ctx.verify_mode=ssl.CERT_REQUIRED`.
- Update the description of default in README.md.
Signed-off-by: kareza <kareza@qq.com>
---------
Signed-off-by: kareza <kareza@qq.com>
Co-authored-by: Andreas Maier <maiera@de.ibm.com>1 parent a000193 commit 3d78630
2 files changed
Lines changed: 80 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
292 | | - | |
| 291 | + | |
| 292 | + | |
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
330 | 351 | | |
331 | 352 | | |
332 | 353 | | |
| |||
393 | 414 | | |
394 | 415 | | |
395 | 416 | | |
396 | | - | |
| 417 | + | |
397 | 418 | | |
398 | 419 | | |
399 | 420 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
163 | 214 | | |
164 | 215 | | |
165 | 216 | | |
| |||
168 | 219 | | |
169 | 220 | | |
170 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
171 | 225 | | |
172 | 226 | | |
173 | 227 | | |
| |||
407 | 461 | | |
408 | 462 | | |
409 | 463 | | |
410 | | - | |
| 464 | + | |
411 | 465 | | |
412 | 466 | | |
413 | 467 | | |
| |||
0 commit comments