Added a variant of the test that uses HashiCorp Vault to manage te
Certificate Authorities.
This commit is contained in:
1 parent
7f07e47138
commit
777b86ce33
7 files changed
+236
-48
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# Generate the client key and CSR locally, the key is never sent to Vault
|
||||
openssl req \
|
||||
-newkey rsa:4096 \
|
||||
-keyout client_key.pem \
|
||||
-noenc \
|
||||
-subj "/CN=test-client" \
|
||||
-out client.csr
|
||||
|
||||
# Sign the client CSR
|
||||
vault write -field=certificate pki_int/sign/wif-client \
|
||||
csr=@client.csr \
|
||||
common_name=test-client \
|
||||
ttl=8760h > client_cert.pem
|
||||
Reference in new issue
Block a user