mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Unable to connect to vaultwarden via Bitwarden CLI #1045
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @blasphemite on GitHub (Jun 8, 2021).
Subject of the issue
I'm not sure if this error originates from Bitwarden CLI or from a misconfiguration of Vaultwarden.
I created a Vaultwarden instance and tried to log in via Bitwarden CLI, but I receive the error:
request to https://vault.domain.example/api/accounts/prelogin failed, reason: unable to verify the first certificateVaultwarden itself shouldn't be dealing with the SSL; I use Caddy as a reverse proxy in front of Vaultwarden. On Caddy, I'm serving a wildcard certificate signed by a custom Root CA. This CA is successfully added to the cert store on the Ubuntu host I'm using for Bitwarden CLI.
Again, I'm not sure if this error originates from Bitwarden CLI or from a misconfiguration of Vaultwarden.
Deployment environment
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Steps to reproduce
I started Vaultwarden simply with the configuration above.
I used the bitwarden-cli binary provided on their website, configured it to my selfhosted instance, and attempted to log in, at which point I received the error.
Expected behaviour
I expected to either pass or fail the authentication based on credentials I provided.
Actual behaviour
I receive the error when logging in, irrespective of whether or not the credentials I provide are legitimate. I can enter a gibberish standard email address and a random password and I get the same error as when I enter my true email address and real password,
Troubleshooting data