Hello,
I’m trying to configure Rancher secrets. I use Vault with self-signed certs.
When I use the vault command with the environment variable VAULT_SKIP_VERIFY=true works fine. But rancher server doesn’t work with this environment variable.
-
Rancher server throws the next error:
level=error msg=“Put https://10.36.156.168:8200/v1//transit/encrypt/rancher: x509: cannot validate certificate for 10.36.156.168 because it doesn’t contain any IP SANs” -
It is the same error if I execute vault command without VAULT_SKIP_VERIFY environment variable:
Error checking seal status: Get https://10.36.156.168:8200/v1/sys/seal-status: x509: cannot validate certificate for 10.36.156.168 because it doesn’t contain any IP SANs
I launch Rancher server with this command:
sudo docker run -d --restart=unless-stopped -e VAULT_ADDR=https://10.36.156.168:8200 -e VAULT_TOKEN=xxxxxxxx-xxxxxx-xxxxxxxx -e VAULT_SKIP_VERIFY=true -p 8080:8080 --dns 10.36.11.238 rancher/server:v1.4.0 --db-host mysql.hsap.sacyl.es
I tried with:
- VAULT_SKIP_VERIFY=true
- VAULT_SKIP_VERIFY=True
- VAULT_SKIP_VERIFY=“true”
- VAULT_SKIP_VERIFY=“True”
But the same error…
I launch correctly Rancher server?