Skip to content

Commit

Permalink
Add CMP profile selection to cloudCA demo
Browse files Browse the repository at this point in the history
  • Loading branch information
RufusJWB committed Sep 26, 2024
1 parent 2c55916 commit ead57ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile_v1
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,10 @@ ifeq ($(CA_SECTION),Insta)
else ifeq ($(CA_SECTION),CloudCA)
CRL_SECTION= # no crl-based checks
OCSP_CHECK=
override EXTRA_OPTS += -path /.well-known/cmp -reqexts empty -subject /CN=CloudCA-Integration-Test-User
ifdef CMP_PROFILE
PROFILE_PATH="/p/$(CMP_PROFILE)"
endif
override EXTRA_OPTS += -path "/.well-known/cmp$(PROFILE_PATH)" -reqexts empty -subject /CN=CloudCA-Integration-Test-User
else
CA_SECTION=EJBCA
CRL_SECTION=crls
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ You can clone the git repository and its submodules with
```
git clone https://github.com/siemens/gencmpclient.git
cd genCMPClient
make -f Makefile_v1 get_submodules
make -f Makefile_v1 get_submodules
```

This will fetch also the underlying [CMPforOpenSSL extension to OpenSSL](https://github.com/mpeylo/cmpossl) if needed and
Expand Down Expand Up @@ -410,6 +410,13 @@ For instance:
OPENSSL_TRACE=HTTP ./cmpClient imprint -section Insta
```

To select a specific CMP profile on the cloudCA server, set the environment
variable `CMP_PROFILE` to the profile name.
For instance:
```
CMP_PROFILE=Nested make -f Makefile_v1 demo_CloudCA
```


## Using the library in own applications

Expand Down

0 comments on commit ead57ce

Please sign in to comment.