Self hosted iOS and Windows Bitwarden App: failed to fetch

Hi all,

I managed to setup a vaultwarden docker and it works well.

It’s an self hosted environment:

  • vaultwarden docker in synology
  • reverse proxy in the synology using a synology unofficial certificate for a internal domain name

I am able to access my vault via browser from my Laptop and via the browser plugins. It is also possible to access the vault from outside via VPN in a browser.

All apps and the docker are updated to the latest available versions.

However, if I try the bitwarden desktop app or the bitwarden mobile App I always get an error “failed to fetch” on windows and “An error occured” on iOS after sending my master password.

On iOS I allowed the bitwarden client to access the local network. I used the self-hosted options in the apps and added the multiple times cross checked url…(which works in browsers and browser plugins).

An educated guess would be: somehow the apps struggle with unoffical ssl certifcates.
However, I do not want to use lets encrypt as I do not want to expose the server to a public domain. When accessing from the outside I want to use VPN (which works in browsers).

Has anybody any idea?

Thanks, Scrati

Dear all, I found the solution. You have to be a tiny root certificate authority. Hence you should use:

openssl req -x509 -newkey rsa:4096 -keyout self-signed.key -out self-signed.crt -sha256 -days 36500 -nodes -subj “/C=yourcountry/ST=yourcity/O=yourauthorityname/OU=yourorgaunit/CN=yourcommonname” -addext “subjectAltName = DNS:yourdns.name”

After doing that I added that certificate to my synology. Furthermore, you have to add it as trusted to all your client devices. You’ll find loads of examples on the internet.

1 Like