Add: Cert README

This commit is contained in:
Jay 2024-08-07 18:58:18 +09:00
parent a4382a1d6c
commit 8ae22424d4
Signed by: Jay
GPG Key ID: A40DB907D289BF5A

18
certs/README.md Normal file
View File

@ -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
```