Commit d154f2d
committed
Add IPs to self-baked TLS certs as IPs, not DNS names
Some tests use IP addresses from http test servers for various
Pelican server configs (e.g. 'Server.ExternalWebUrl'). When we do
this, the certificates Pelican generates for itself are invalid because
they contain a SAN that says the IP is a DNS entry.
This was exposed in tests for PelicanPlatform#2035 after it picked up the new
verification code that checks the cert against configured hostnames.1 parent 66325f0 commit d154f2d
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
507 | 508 | | |
508 | 509 | | |
509 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
510 | 525 | | |
511 | 526 | | |
512 | 527 | | |
513 | 528 | | |
514 | 529 | | |
| 530 | + | |
515 | 531 | | |
516 | | - | |
517 | 532 | | |
518 | | - | |
| 533 | + | |
519 | 534 | | |
520 | 535 | | |
521 | 536 | | |
| |||
0 commit comments