Skip to content

Commit

Permalink
README.md: merge the sections 'Using the demo client' and 'Using the …
Browse files Browse the repository at this point in the history
…CLI-based client'; small tweaks
  • Loading branch information
DDvO committed Sep 26, 2024
1 parent 6e7d480 commit 90f232b
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,16 +347,18 @@ sudo dpkg -i libgencmp*deb cmpclient_*.deb
```


## Using the demo client
## Using the CLI-based demo client

The CMP demo client is implemented in [`src/cmpClient.c`](src/cmpClient.c)
as part of the CLI.
The Command-Line Interface (CLI) of the CMP client is implemented in
[`src/cmpClient.c`](src/cmpClient.c).
It supports most of the features of the genCMPClient library.
The CLI use with the available options are documented in [`cmpClient.pod`](doc/cmpClient.pod).

For simple test invocations the Insta Certifier Demo CA server may be used,
for instance as follows:
```
openssl ecparam -genkey -name prime256v1 -out test.key.pem
cmpClient -config "" -server pki.certificate.fi:8700/pkix/ \
./cmpClient -config "" -server pki.certificate.fi:8700/pkix/ \
-recipient "/C=FI/O=Insta Demo/CN=Insta Demo CA" \
-secret pass:insta -ref 3078 \
-cmd cr -newkey test.key.pem -subject "/CN=test" -certout test.cert.pem
Expand Down Expand Up @@ -387,15 +389,7 @@ You can view this certificate for instance by executing
openssl x509 -noout -text -in creds/operational.crt
```


## Using the CLI-based client

The Command-Line Interface (CLI) of the CMP client is implemented in
[`src/cmpClient.c`](src/cmpClient.c).
It supports most of the features of the genCMPClient library.
The CLI use with the available options are documented in [`cmpClient.pod`](doc/cmpClient.pod).

CLI-based tests using the external Insta Demo CA may be invoked using
CLI-based tests using the Insta Demo CA may be invoked using
```
make -f Makefile_v1 test_Insta
```
Expand Down

0 comments on commit 90f232b

Please sign in to comment.