Is there any way to allow the use of self signed certificates when using the http api?
I currently get this response when trying to run "vault status":
certificate signed by unknown authority
For my private organization a self signed certificate is sufficient and just as secure as
one signed by an actual authority. It would be nice to be able to interact with the vault server regardless of signing authority.
Hi @certifiedloud
If you do not want to add the self-signed cert to your local system, you can skip TLS verification. However, this reduces security. I would recommend installing the cert onto your system instead.
Works for me, thanks!
@certifiedloud You can also use the -ca-cert flag for most CLI commands!
Ah! Good to know. Thanks.
Adding the Certificate on RHEL
update-ca-trust enable
cp /etc/vault/ssl/certs/vault.crt /etc/pki/ca-trust/source/anchors/
update-ca-trust extract
vault status
On Ubuntu 16.04
Assuming you have the certificate in your home directory:
sudo su
mkdir /usr/share/ca-certificates/vault
cp /home/ubuntu/vault-ca.crt /usr/share/ca-certificates/vault/vault-ca.crt
echo "vault/vault-ca.crt" >> /etc/ca-certificates.conf
update-ca-certificates
vault status
The above instructions (for example, @sprutner 's) should really make into the official documentation.
Most helpful comment
The above instructions (for example, @sprutner 's) should really make into the official documentation.