Android app don't connect to server with self cert

Sorry if I don’t use right terms, I am n00b.
So, I installed Bitwardenrs in docker container, with self created certs. From my deskop, I can connect to server using IP address, but I could not connect from my Android phone, using server IP (Wi-Fi, connected to my local network) I receive this error msg


Edit: In my former setup, I have with nginx reverse proxy and Lets encrypt, but now, I prefer not to open ports and connect Bitwarden_rs to internet.

1 Like

It is not recommended to use self-signed certs, because it causes these kind of issues.
Please see:

1 Like

@BlackDex thank you for answer.

I use Caddy with DNS challenge from Using Docker Compose · dani-garcia/bitwarden_rs Wiki · GitHub. Obviously, I miss something, because I receive “The connection has timed out” error.
My docker-compose.yml:

version: '3'

    image: bitwardenrs/server:latest
    container_name: bitwarden
    restart: always
      - WEBSOCKET_ENABLED=true  # Enable WebSocket notifications.
      - /srv/appdata/bw_data_https:/data

    image: caddy:2
    container_name: caddy
    restart: always
      - 80:80
      - 443:443
      - ./caddy:/usr/bin/caddy  # Your custom build of Caddy.
      - ./Caddyfile:/etc/caddy/Caddyfile:ro
      - ./caddy-config:/config
      - ./caddy-data:/data
      -  # Your domain.
      - EMAIL=myemail       # The email address to use for ACME registration.
      - DUCKDNS_TOKEN=my DuckDNS token         # Your Duck DNS token.
      - LOG_FILE=/data/access.log

And I DO NOT open the ports on my router.
Stupid question: what I’m doing wrong?

@damaskin I was facing same error during last few days. Then i saw your post. Thanks for doing this for me. :slightly_smiling_face:

how did you create the certificate ? did you try adding the certificate to trusted certs on your phone ?

Well, I don’t. :slight_smile: I try to insert

ROCKET_TLS: '{certs = "/ssl/bitwarden.crt", key = "/ssl/bitwarden.key"}'
LOG_FILE: '/data/bitwarden.log'
ADMIN_TOKEN: longstringhere

but have an error from docker-compose