From 8ae22424d47b6af061647745f2894d3c27c74fc7 Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 7 Aug 2024 18:58:18 +0900 Subject: [PATCH] Add: Cert README --- certs/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 certs/README.md diff --git a/certs/README.md b/certs/README.md new file mode 100644 index 0000000..34b7cf1 --- /dev/null +++ b/certs/README.md @@ -0,0 +1,18 @@ +# Test + +## Server + + - RootCA + ```bash + $ openssl s_server -accept 8765 -key host/server.key -cert host/server.crt -CAfile rootca/rootCA.crt + ``` + - ICA + ```bash + $ openssl s_server -accept 8765 -key host/server.key -cert_chain ica/ICA.crt -cert host/server.crt -CAfile rootca/rootCA.crt + ``` + +## Client + +```bash +$ openssl s_client -connect localhost:8765 -verifyCAfile rootca/rootCA.crt +```