Commit 5adedcf
committed
Add client certificates to push-attestation prototype
This replaces the usage of `default-tls` feature from reqwest with
`native-tls`, which uses OpenSSL as backend on Linux.
Add 'anyhow' crate as dependency to add context information to user
facing errors.
This also disables the hostname verification because the certificates
generated by the verifier don't have the Subject Alternative Name (SAN)
set properly, making the certificates to fail hostname verification
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>1 parent 2227423 commit 5adedcf
File tree
5 files changed
+143
-44
lines changed- keylime-push-model-agent
- src
- tests
5 files changed
+143
-44
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
0 commit comments