kms/test_data/certificates
Manuthor 1a68ee01b1
fix: clean uneeded test files (#392)
* test: clean unneeded test files

* chore: update submodule cli

* fix: freeze cargo git deps

* fix(server): increase keep alive and client req timeout

* chore: update submodule cli
2025-03-27 17:00:06 +01:00
..
chain refactor: move all CLI relative crates on https://github.com/Cosmian/cli/actions (#383) 2025-03-24 22:13:14 +01:00
gmail_cse refactor: move all CLI relative crates on https://github.com/Cosmian/cli/actions (#383) 2025-03-24 22:13:14 +01:00
openssl refactor: reexpose clap actions for other CLIs (cosmian, ckms_gui) 2024-12-09 15:27:58 +01:00
README.md build: release 4.22.0 2025-02-04 06:59:51 +01:00

The generate.sh script will generate

  • a CA certificate
  • a server certificate in a PKCS12 file to enable HTTPS on the server
  • a client certificate to authenticate to the server with CN being test.client@cosmian.com

Since the PKCS12 password is password (see script), the following command will start the server:

RUST_LOG="cosmian=debug" cargo run --bin cosmian_kms -- \
    --https-p12-file ./crate/cli/test_data/certificates/kmserver.cosmian.com.p12 --https-p12-password password \
    --authority-cert-file ./crate/cli/test_data/certificates/ca.crt

The following command will test a client connection with client cert authentication:

curl -k --cert ./crate/cli/test_data/certificates/owner.client.cosmian.com.crt --key ./crate/cli/test_data/certificates/owner.client.cosmian.com.key https://localhost:9998/objects/owned