Commit ef0d20f
committed
tests/server: add optional required client cert auth.
This commit updates the `tests/server.c` program so that if an
`AUTH_CERT` env var is provided the server will be configured to require
clients provide a client certificate issued that chains to the
`AUTH_CERT` certificate authority. If no `AUTH_CERT` env var is set the
server works as it did before, ignoring client certificate
authentication.1 parent 67892aa commit ef0d20f
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
258 | 260 | | |
259 | 261 | | |
260 | 262 | | |
| |||
285 | 287 | | |
286 | 288 | | |
287 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
288 | 306 | | |
289 | 307 | | |
290 | 308 | | |
| |||
360 | 378 | | |
361 | 379 | | |
362 | 380 | | |
| 381 | + | |
| 382 | + | |
363 | 383 | | |
364 | 384 | | |
365 | 385 | | |
| |||
0 commit comments