Last active
November 28, 2021 16:26
-
-
Save vishalnayak/a9b514cfa186fc46dc4bf879a1318119 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -aex | |
vault secrets enable pki | |
vault secrets tune -max-lease-ttl=87600h pki | |
vault write pki/root/generate/internal common_name=myvault.com ttl=87600h ip_sans=127.0.0.1 | |
vault write pki/roles/myvault-dot-com require_cn=false allowed_domains="myvault.com" allow_subdomains="true" max_ttl="72h" generate_lease="true" | |
vault write pki/issue/myvault-dot-com format=pem ip_sans=127.0.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment