feat: issue root/intermediate ca

This commit is contained in:
2023-05-20 18:16:54 +08:00
parent d5fa1537dc
commit fa4844d472
8 changed files with 243 additions and 52 deletions

30
yubikey-ca-java/README.md Normal file
View File

@@ -0,0 +1,30 @@
ENV:
* CARD_CLI - Card cli command or full path, default `card-cli`
* SIGN_REQUEST_SLOT - Sign request slot, default `82`
# Generate Keypair
```shell
$ java -jar yubikey-ca-java.jar --generate-keypair --keypair-type secp256r1
```
# Issue ROOT CA
```shell
$ java -jar yubikey-ca-java.jar --generate-root-ca \
--sign-slot 88 --subject 'CN=Hatter Yubikey EC Root CA' \
--pin ****** \
[--add-to-remote]
```
# Issue Intermediate CA
```shell
$ java -jar yubikey-ca-java.jar --generate-intermediate-ca \
--sign-slot 88 --subject 'CN=Hatter Yubikey EC Intermediate CA' \
--cert-slot 89 --root-ca-id 39 \
--pin ****** \
[--add-to-remote]
```