Skip to content

Commit

Permalink
docs: fix https document
Browse files Browse the repository at this point in the history
using the new format of config file

Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Nov 8, 2024
1 parent c0b4710 commit c3f1e75
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions kbs/docs/self-signed-https.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,37 +62,38 @@ openssl pkey -in private.key -pubout -out public.pub
Set up a `kbs-config.toml`
```bash
cat << EOF > kbs-config.toml
[http_server]
sockets = ["0.0.0.0:8080"]
private_key = "/etc/key.pem"
certificate = "/etc/cert.pem"
insecure_http = false
sockets = ["0.0.0.0:8080"]
[admin]
auth_public_key = "/etc/public.pub"
insecure_api = true
[attestation_token]
insecure_key = true
[repository_config]
type = "LocalFs"
dir_path = "/opt/confidential-containers/kbs/repository"
[policy_engine]
policy_path = "/opa/confidential-containers/kbs/policy.rego"
[as_config]
[attestation_service]
type = "coco_as_builtin"
work_dir = "/opt/confidential-containers/attestation-service"
policy_engine = "opa"
rvps_store_type = "LocalFs"
attestation_token_broker = "Simple"
[as_config.attestation_token]
duration_min = 5
[attestation_service.attestation_token_config]
duration_min = 5
[as_config.rvps_config]
store_type = "LocalFs"
remote_addr = ""
[attestation_service.rvps_config]
remote_addr = ""
store_type = "LocalFs"
[policy_engine_config]
policy_path = "/opa/confidential-containers/kbs/policy.rego"
[[plugins]]
name = "resource"
type = "LocalFs"
dir_path = "/opt/confidential-containers/kbs/repository"
EOF
```

Expand Down

0 comments on commit c3f1e75

Please sign in to comment.