mirror of
https://github.com/bitwarden/android.git
synced 2026-05-07 03:23:29 -05:00
[GH-ISSUE #4590] Connection failure to self hosted vaultwarden behind lets encrypt certificate #21398
Closed
opened 2026-04-16 21:52:00 -05:00 by GiteaMirror
·
16 comments
No Branch/Tag Specified
main
new-item-types/PM-32810_bank-account-discovery
pm-34038/card-scanner-qa-fixes
beta-for-qa
new-item-types/PM-32810_bank-account
target-sdk-37
PM-33982/build-device-screen
new-item-types/PM-34123_new-item-menu
new-item-types/PM-32806_passport
new-item-types/PM-32808_drivers-license
BWA-99/show-next-totp
BWA-99/add-preview-next-totp-code-setting
renovate/glidecompose
chore/improve-android-ui-verification-skill
sync-min-sdk
release/2026.4-rc51
fix/security-sast-22741894-bvwj
related-origin-passkey-creation
release/2026.4-rc50
platform/android-breaking-change-detection
innovation-sprint-2026-send-folder
release/2026.3-rc49
PM-34193-vault-lockout
android-collections
llm/add-resolving-sdk-updates-skill
QA-1523/sanity-test-saucelabs
release/2026.3-rc48
PM-26577-app-links-support
PM-26896-autofill-fix
release/2026.2-rc47
pr-6572
release/2026.2-rc46
release/2026.1-rc45
PM-30644/added-logs-for-debug
PM-30644/quicktile-nav-not-showing-migration
minor-gradle-updates
release/2026.1-rc42
release/2026.1-rc44
release/2026.1-rc43
PM-28834/set-landscape-on-horizonos-devices
PM-28468/validate-and-navigate-to-vault-migration
PM-20026/force-ltr-passwords-and-codes
release/2025.12-rc41
cmcg/testCoverage
PM-29014/talkback-support-for-passwords
release/2025.12-rc40
BRE-1305/publish_test
accept-user-certs
autofill-permissions
release/2025.11-rc39
PM-22479/check-all-certificates-validate-asset-links
release/2025.10-rc38
agalles/android-latest
retro-agent
PM-27001/skip-account-selection-only-one-exists-cxp
release/2025.10-rc37
agalles/test-1118
release/2025.10-rc36
PM-20593-token-refresh
QA-1126b/adding-native-sanity-test
release/2025.9-rc35
pm-25933/sdk-update-password
release/2025.9-rc34
release/2025.8-rc33
agalles/20250821-release
debug-release-issues
pm-24249-allow-automated-prs-for-sdk-updates
release/2025.8-rc32
release/WORKFLOW-TEST-2025.8-rc28
agalles/20250807release
release/2025.07-rc25
release/hotfix-v2025.7.0-bwa
pm-23311/export-vault-policy-bypass
release/2025.07-rc24
authenticator-pm-sync-flags-issue
release/hotfix-v2025.6.0-bwpm
release/2025.06-rc21
agalles/automate-android-fastlane-patch
release/2025.05-rc20
release/2025.04-rc19
languages/basque
release/2025.03-rc19
update-readme
qrcode/feature
innovation/archive/pm-19153-archive-items
qrcode/2-ui-fields
qrcode/1-page
hold-on-biometric-prompt-alternative
release-notes-process
release/2025.02-rc16
bwa-monorepo
PM-8223/new-device-verification-ux-improvements
pm-18451/exempt-from-policies
test-bwa
release/2025.01-rc15
release/2025.01-rc14
release/2024.12-rc13
pm-16670/sync-leave-notice
821
PM-16695/backport-lean-more-new-device-verification
release/hotfix-v2024.11.7
release/2024.11-rc1
pm-11304/collection-add-item-button
PM-14241/disabling-logs-app-crash
poc/offline-editing
new-version-calc
pm-11649/expired-link-services
pm-6702/add-feature-flag
pm-6702/email-verification-feature
pm-9933/marketing-copy-update
pm-6702/registration-flows
update-templates
pm-6701/email-verification-selfhost-registration
v2026.4.0-bwa
v2026.4.0-bwpm
v2026.3.1-bwa
v2026.3.1-bwpm
v2026.3.0-bwpm
v2026.3.0-bwa
v2026.2.1-bwpm
v2026.2.1-bwa
v2026.2.0-bwpm
v2026.2.0-bwa
v2026.1.1-bwa
v2026.1.1-bwpm
temp-test
v2026.1.0-bwpm
v2026.1.0-bwa
v2025.12.1-bwa
v2025.12.1-bwpm
v2025.12.0-bwa
v2025.12.0-bwpm
v2025.11.1-bwpm
v2025.11.1-bwa
v2025.11.0-bwpm
v2025.11.0-bwa
v2025.10.1-bwa
v2025.10.1-bwpm
v2025.10.0-bwa
v2025.10.0-bwpm
v2025.9.1-bwa
v2025.9.1-bwpm
v2025.9.0-bwa
v2025.9.0-bwpm
v2025.8.1-bwa
v2025.8.1-bwpm
v2025.8.0-bwa
v2025.8.0-bwpm
v2025.7.2-bwa
v2025.7.2-bwpm
v2025.7.1-bwa
v2025.7.1-bwpm
v2025.7.0-bwa
v2025.7.0-bwpm
v2025.6.1-bwpm
v2025.6.0-bwa
v2025.6.0-bwpm
v2025.1.0-bwa
v2025.5.0-bwa
v2025.5.0-bwpm
v2025.5.999
2025.4.0
v2025.4.0
untagged-4731eaadac73f3dfbbb8
v2025.3.0
v2025.2.0
untagged-815a165c5d70ffe75bc7
v2025.1.2
v2025.1.1
v2025.1.0
v2024.12.0
untagged-5a76b6392a4c8998c63a
v2024.11.7
v2024.11.6
v2024.11.5
v2024.11.4
v2024.11.3
v2024.11.2
v2024.11.1
v2024.11.0
v2024.10.2
v2024.10.1
v2024.10.0
v2024.9.0
v2024.8.1
v2024.8.0
v2024.7.3
v2024.7.2
v2024.7.1
v2024.7.0
v2024.6.1
v2024.6.0
v2024.5.1
v2024.4.1
v2024.4.2
v2024.4.0
v2024.3.3
v2024.3.1
v2024.3.0
v2024.2.1
v2024.2.0
v2024.1.1
v2024.1.0
v2023.12.0
v2023.10.0
v2023.9.2
maui-single-project-android
v2023.9.1
v2023.9.0
v2023.8.0
v2023.7.0
v2023.5.0
v2023.4.0
v2023.3.2
v2023.3.1
v2023.3.0
v2023.2.0
v2023.1.0
v2022.11.0
v2022.10.0
v2022.9.1
v2022.9.0
v2022.8.0
v2022.6.2
v2022.6.1
v2022.6.0
v2022.05.0
v2.18.0
v2.17.0
v2.16.4
v2.16.3
v2.16.2
v2.16.1
v2.15.0
v2.14.2
v2.14.1
v2.14.0
v2.13.0
v2.12.0
v2.11.3
v2.11.2
v2.11.1
v2.11.0
v2.10.0
v2.9.1
v2.9.0
v2.8.2
v2.8.1
v2.8.0
v2.7.2
v2.7.0
v2.6.1
v2.6.0
v2.5.6
v.2.5.5
v2.5.5
v2.5.4
v2.5.3
v2.5.2
v2.5.1
v2.5.0
v2.4.3
v2.4.2
v2.4.1
v2.4.0
v2.3.1
v2.3.0
v2.2.8
v2.2.7
v2.2.6
v2.2.2
v2.2.1
v2.2.0
v2.1.2
v2.1.0
v2.0.6
v2.0.5
v2.0.4
v2.0.3
v2.0.2
v2.0.1
v2.0.0
v1.22.1
v1.22.0
v1.21.0
v1.20.0
v1.19.0
v1.18.1
v1.18.0
v1.17.0
v1.16.0
v1.15.2
v1.15.1
v1.15.0
v1.14.4
v1.14.1
v1.14.0
v1.13.0
v1.12.2
v1.12.1
v1.12.0
v1.11.1
v1.11.0
v1.10.0
v1.9.0
v1.8.1
v1.8.0
v1.7.0
v1.6.5
v1.6.1
v1.6.0
v1.5.1
v1.5.0
v1.4.4
v1.4.3
v1.4.0
v1.3.0
v1.2.1
v1.2.0
v1.1.0
v1.0.0
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/android#21398
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking 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 @heeen on GitHub (Jan 19, 2025).
Original GitHub issue: https://github.com/bitwarden/android/issues/4590
Steps To Reproduce
I have a vaultwarden instance that has not given me any issues until recently. First I received "cannot serve your request, contact us" errors. After signing out and trying to sign back in, I am getting a certificate validation error. Chrome says my certificate is OK. firefox extension on linux has no issue connecting and synchronizing.
FWIW I am in the beta program on android (2025.1.0). This is on a Google Pixel 6 Pro, Android 15
Expected Result
Connection should work as expected and as on other platforms
Actual Result
SSL connection error
Screenshots or Videos
No response
Additional Context
No response
Build Version
2025.1.0
What server are you connecting to?
Self-host
Self-host Server Version
vaultwarden 1.32.7
Environment Details
Pixel 6 Pro
Android 15
Issue Tracking Info
@bitwarden-bot commented on GitHub (Jan 19, 2025):
Thank you for your report! We've added this to our internal board for review.
ID: PM-17240
@decentropy commented on GitHub (Jan 19, 2025):
Came here to report same issue.
It started this morning.
I even force installed older versions from F-Droid, but gives same error.
This occurs on my samsung tablet and wife's pixel, not on my OnePlus phone. I verified can reach self hosted web vault from all devices via browser.
@BBGhub commented on GitHub (Jan 20, 2025):
Hi There,
This error often occurs when using older versions of Vaultwarden with the updated native app. To resolve this:
Update Vaultwarden: Ensure your server is up-to-date. For instance, Vaultwarden added support for native apps in version 1.31.0. If you're running an earlier version, upgrading should fix the issue.
Clear Cache: After updating, clear the app cache or restart the app.
While Bitwarden clients generally work with non-official servers, we cannot guarantee full compatibility. Keeping your server updated ensures compatibility with the latest features. Please note our support is limited for non-official servers.
@heeen commented on GitHub (Jan 20, 2025):
My vaultwarden is current. The log does not show any requests from the android client so i doubt it is the problem, rather the https stack as used by bitwarden android
@BBGhub commented on GitHub (Jan 20, 2025):
Thanks for your reply.
It is important to note that Vaultwarden is not associated with Bitwarden. Vaultwarden is a re-writing of the Bitwarden server code in Rust (n.b. Vaultwarden is NOT a fork of Bitwarden), that is not contributed to nor supported by the Bitwarden team or organisation.
The security audits granted to Bitwarden do not apply to Vaultwarden, and the Bitwarden support team is not able to respond to questions regarding Vaultwarden.
Support options for Vaultwarden are found here:
https://github.com/dani-garcia/vaultwarden?tab=readme-ov-file#get-in-touch
Bitwarden also offers a self-hosted option, with multiple deployment options, including for air-gapped deployments. You can find information on Bitwarden’s deployment options here:
https://bitwarden.com/help/install-on-premise-linux/
https://bitwarden.com/help/install-and-deploy-offline/
@redge76 commented on GitHub (Jan 20, 2025):
Got the same issue. I don't see any log in my traefik reverse proxy.
I'm behind a cloudflared tunnel.
So somehing blocks the connection on the phone or in cloudflare.
My vw instance in configured to serve the service in a subdirectory in URL.
@heeen commented on GitHub (Jan 20, 2025):
I can see a connection attempt in a tcpdump log, but no http request server side. I haven't analyzed the log further.
@redge76 commented on GitHub (Jan 20, 2025):
Originally, my Vaultwarden instance was behind a Cloudflare tunnel. Here is the connection process:
Here are the tests I made:
I added an entry in my local home DNS for vaultwarden.my-domain.com that points directly to the local IP of my home server. --> Both the web app and Android app work.
I disabled the tunnel in Cloudflare and used it simply as a reverse proxy. --> The web app works, but the Android app does not.
I disabled both the tunnel and the Cloudflare proxy (so Cloudflare is just used as DNS). With the vaultwarden.my-domain.com query, I get the external IP of my home router. --> The web app works, but the Android app does not.
So, is there something new with how the Android app resolves DNS queries? It seems like it doesn't like Cloudflare DNS (or Cloudflare doesn't like how the app sends its queries).
@heeen commented on GitHub (Jan 20, 2025):
I have a working theory - after ruling many other issues out - that it could be related to http2 as it seems like my bitwarden server is not offering http2 properly. The login request never reaches my server, it fails at the reverse proxy.
@redge76 commented on GitHub (Jan 20, 2025):
I'm on free plan and I can't disable it. Can you ?
https://developers.cloudflare.com/speed/optimization/protocol/http2/
HTTP/2 to Origin is not the issue as It works with the web client. Don't you think ?
@decentropy commented on GitHub (Jan 20, 2025):
to confirm... after upgrading my vaultwarden docker to latest, it resolved issue and android apps working again
@redge76 commented on GitHub (Jan 20, 2025):
Are you behind a cloudflare reverse proxy? My vaultwarden instance is already upgraded to the latest version
@heeen commented on GitHub (Jan 20, 2025):
fixed my http2 reverse proxy config and it did not help.
@redge76 commented on GitHub (Jan 20, 2025):
OK so I found what was wrong. My fault.
My vw instance is protected by a "google oauth" authentication provided by cloudflare.
If I disable this, my app connect correctly. I don't know. May be I had an exception I removed.
So now I will wait for https://github.com/bitwarden/android/pull/4486 to protect my vw with mtls instead of google oauth.
@heeen commented on GitHub (Jan 21, 2025):
My issue solved itself overnight, which is disappointing from a debugging point of view. I can't even reproduce it to root cause it. I had a DNS issue on my host VM which I worked around by adding 8.8.8.8 to resolv.conf earlier that day. I wonder if there's any correlation between DNS failures server side and ssl connections failing client side .
@scottwmaxwell commented on GitHub (Jan 22, 2025):
I was experiencing the same issue.
Context: I'm using Vaultwarden via CasaOS and a reverse proxy to use https.
I managed to update Vaultwarden, which wasn't obvious (to me) on CasaOS.