Commit c84948b
committed
fix: patch report_data in simulator RA-TLS certificates to bind to actual TLS key
The simulator's get_tls_key RPC produced RA-TLS certificates with a canned
attestation whose report_data didn't match the actual TLS public key. Clients
verifying report_data == SHA-512("ratls-cert:" || leaf_pubkey) would reject
these certs. Fix by adding VersionedAttestation::set_report_data() and calling
it in request_cert() when an attestation override is provided.1 parent 31cfd48 commit c84948b
2 files changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
270 | 283 | | |
271 | 284 | | |
272 | 285 | | |
| |||
0 commit comments