Skip to content

Commit 88f433f

Browse files
committed
update config templates to support edgeCA handling via EST
Signed-off-by: Joerg Zeidler <[email protected]>
1 parent 7ba7baa commit 88f433f

File tree

5 files changed

+35
-3
lines changed

5 files changed

+35
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"
77
name = "omnect-cli"
88
readme = "README.md"
99
repository = "https://github.com/omnect/omnect-cli"
10-
version = "0.25.1"
10+
version = "0.26.0"
1111

1212
[dependencies]
1313
actix-web = "4.9"

conf/config.toml.est.template

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ retry = "4%"
2424
[cert_issuance.est]
2525
trusted_certs = [
2626
"file:///mnt/cert/ca/ca.crt",
27+
"file:///mnt/cert/ca/edge_ca.crt",
2728
]
2829

2930
[cert_issuance.est.auth]
@@ -32,3 +33,15 @@ bootstrap_identity_pk = "file:///mnt/cert/priv/device_id_cert_key.pem"
3233

3334
[cert_issuance.est.urls]
3435
default = "https://omnect-est.url:8080/.well-known/est"
36+
37+
[edge_ca]
38+
method = "est"
39+
common_name = "test-omnect-est"
40+
url = "https://omnect-est.url2/.well-known/est"
41+
bootstrap_identity_cert = "file:///mnt/cert/priv/edge_ca_cert.pem"
42+
bootstrap_identity_pk = "file:///mnt/cert/priv/edge_ca_cert_key.pem"
43+
44+
[edge_ca.auto_renew]
45+
rotate_key = true
46+
threshold = "80%"
47+
retry = "4%"

conf/config.toml.tpm.template

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,24 @@ id_scope = "my-scope-id"
99

1010
[provisioning.attestation]
1111
method = "tpm"
12-
registration_id = "my-reg-id"
12+
registration_id = "my-omnect-iot-tpm-device"
13+
14+
[cert_issuance.est]
15+
trusted_certs = [
16+
"file:///mnt/cert/ca/edge_ca.crt",
17+
]
18+
19+
[edge_ca]
20+
method = "est"
21+
common_name = "my-omnect-iot-tpm-device"
22+
url = "https://omnect-est.url:8080/.well-known/est"
23+
bootstrap_identity_cert = "file:///mnt/cert/priv/edge_ca_cert.pem"
24+
bootstrap_identity_pk = "file:///mnt/cert/priv/edge_ca_cert_key.pem"
25+
26+
[edge_ca.auto_renew]
27+
rotate_key = true
28+
threshold = "80%"
29+
retry = "4%"
1330

1431
# [tpm]
1532
# tcti = "device:/dev/tpmrm0" # adapt if using e.g. abrmd, default is "device"

src/validators/identity.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ struct Tpm {
121121
#[serde(deny_unknown_fields)]
122122
#[allow(dead_code)]
123123
struct EdgeCA {
124+
cert: Option<String>,
125+
pk: Option<String>,
124126
method: String,
125127
common_name: String,
126128
url: String,

0 commit comments

Comments
 (0)