Hello,
I am currently trying to install Vaultwarden on a Debian 12 VM (HyperV).
First I got the following error message with curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh ./get-docker.sh
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
I was able to fix this by running
openssl s_client -connect registry-1.docker.io:443 -showcerts
and then copying out the range from (and included) -----BEGIN CERTIFICATE----- to -----END CERTIFICATE-----.
I pasted this into sudo nano /usr/local/share/ca-certificates/docker_cert_manuell.crt and ran sudo update-ca-certificates. Then I was able to run curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh ./get-docker.sh successfully.
Then I wrote my docker-compose.yaml:
services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
restart: always
environment:
#DOMAIN: "https://passwortserver.meine-firma.de"
SIGNUPS_ALLOWED: "true"
volumes:
- ./data:/data
ports:
- 80:80
Now I always get the following error message with docker compose up -d:
[+] Running 0/6
⠦ vaultwarden [⠀⠀⠀⠀⠀] Pulling 8.6s
â ™ 59e22667830b Retrying in 1 second 6.1s
â ™ cc18e03c8cd8 Retrying in 1 second 6.1s
â ™ f6e0865da50e Retrying in 1 second 6.1s
â ™ 6bec2bc6dc05 Waiting 6.1s
â ™ aa7aba5b8287 Waiting 6.1s
error pulling image configuration: download failed after attempts=6: tls: failed to verify certificate: x509: certificate signed by unknown authority
I’ve also already tried to write
{
"insecure-registries" : ["registry-1.docker.io"]
}
at /etc/docker/daemon.json
I also added the certificate from openssl s_client -connect registry-1.docker.io:443 -showcerts at sudo nano /etc/docker/certs.d/registry-1.docker.io/ca.crt and restarted docker, unfortunately also without success.
Do any of you have any ideas as to why this could be? or what I can do?