Commit 1b22039
committed
ci: sync OS CA certs and AIA intermediates into GraalVM JDK before native compile
GraalVM native images embed the JDK cacerts at build time and cannot
chase AIA URLs at runtime. When a server omits intermediate CAs from its
TLS handshake, the native binary fails with HTTP 0 (connection error).
The new step runs before native:compile-no-fork on every platform:
- Part 1: imports root CAs from the OS trust store (macOS Keychain /
Linux /etc/ssl/certs) so the binary trusts CAs added after GraalVM 21
was cut.
- Part 2: reads the AIA CA Issuers URL from the server leaf cert,
downloads the missing intermediate in DER format, and imports it. This
self-heals when the server rotates to a new intermediate (e.g. WE1 →
WE2) without requiring a manual cert update.1 parent b479088 commit 1b22039
1 file changed
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
50 | 97 | | |
51 | 98 | | |
52 | 99 | | |
| |||
0 commit comments