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
Copy the 4 scripts to /home/<user> | |
From /home/<user>: | |
./setup_rootca.sh | |
./setup_blacklakeca.sh | |
ipaddr=$(ip route get 8.8.8.8 | awk '{print $7}') | |
SUBJ_IP=$ipaddr ./stratus_server_cert.sh | |
This will: |
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
#!/usr/bin/env bash | |
export VAULT_ADDR=http://localhost:8200 | |
VAULT=/opt/vault/bin/vault | |
VAULT_DATA=/var/lib/vault | |
VAULT_POLICIES=/opt/vault/etc/policies | |
# Ensure policies directory exists | |
mkdir -p $VAULT_POLICIES |