mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-25 17:25:57 +03:00
[GH-ISSUE #304] Can't connect to bitwarden vault from IOS app after update to v1.5.0 #164
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#164
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @ghost on GitHub (Dec 18, 2018).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/304
I can login to web vault from Firefox and Firefox addon but can't from IOS app
[2018-12-18][15:05:25][rustls::session][WARN] Sending fatal alert DecodeError [2018-12-18][15:05:25][rustls::session][WARN] Sending fatal alert DecodeError [2018-12-18][15:05:25][rustls::session][WARN] Sending fatal alert DecodeError [2018-12-18][15:05:25][rustls::session][WARN] Sending fatal alert DecodeError [2018-12-18][15:05:25][rustls::session][WARN] Sending fatal alert DecodeError [2018-12-18][15:05:25][rustls::session][WARN] Sending fatal alert DecodeError [2018-12-18][15:06:09][rustls::session][WARN] Sending fatal alert DecodeError [2018-12-18][15:06:09][rustls::session][WARN] Sending fatal alert DecodeError [2018-12-18][15:06:09][rustls::session][WARN] Sending fatal alert DecodeError [2018-12-18][15:06:09][rustls::session][WARN] Sending fatal alert DecodeError [2018-12-18][15:06:09][rustls::session][WARN] Sending fatal alert DecodeError [2018-12-18][15:06:09][rustls::session][WARN] Sending fatal alert DecodeError[2018-12-18][15:08:19][rustls::server::hs][DEBUG] decided upon suite SupportedCipherSuite { suite: TLS13_AES_128_GCM_SHA256, kx: BulkOnly, bulk: AES_128_GCM, hash: SHA256, sign: Anonymous, enc _key_len: 16, fixed_iv_len: 12, explicit_nonce_len: 0 }@dani-garcia commented on GitHub (Dec 18, 2018):
That's strage, are you using HTTPS? If so, is the certificate a valid one?
@ghost commented on GitHub (Dec 18, 2018):
Yes I am using https with self-signed cert. Something is wrong with ios because I can't even open web vault in safari
@dani-garcia commented on GitHub (Dec 18, 2018):
Arer you accessing by IP? The iOS app works for me, but I'm using a domain with let's encrypt certificates. Maybe you can manually mark the certificates as trusted or something?
@ghost commented on GitHub (Dec 18, 2018):
I am accessing by server IP in my local network. I am using self signed cert for bw server and I think this cause a problem
@dani-garcia commented on GitHub (Dec 18, 2018):
Yeah, that's possible. Did you try without HTTPS to see if that worked?
@ghost commented on GitHub (Dec 18, 2018):
As I remember web vault does not works without https
@dani-garcia commented on GitHub (Dec 18, 2018):
It depends on the clients, on Chrome the crypto API is not available in unsecured sites, but some other clients work fine.
Other than that, if the problem is that iOS won't accept self signed certificates for IPs, then you could configure a dns server so that it routes
bitwarden.localor similar to your server and use it from your iOS device.If on the other end, the problem is that iOS won't accept self signed certificates at all, then there is not much to do other than to get a domain name that you can use let's encrypt from.
@dani-garcia commented on GitHub (Jan 11, 2019):
Is this still a problem, or can we close it?
As a note, I recently found mkcert to easily make local certificates, they aren't self-signed, but instead use their own certificate autority. Something like that may help with cert issues.
@ghost commented on GitHub (Jan 11, 2019):
Yes this is still a problem.
I have to use Bitwarden without SSL because of this.
I tried mkcert to generate CA and self signed cert for server but still no success to connect from ios.
I know you are using Bitwarden on iOS with letsencrypt certs, can you deploy new docker container with self signed certs created by mkcert and check connection from Bitwarden ios app and Safari browser?
I bet RUSTLS does not like Safari and vice versa.
@dani-garcia commented on GitHub (Jan 11, 2019):
Okay, I think i got it.
First you need to create the certificate for your IP, but you can't use the IP directly, so you'll need a DNS entry to redirect to your IP.
For example to create the cert in my case, bitwarden is at
192.168.1.50, so:This will mention something about using local CA at: , take note of it.
It will also create two files in the current directory, that you'll have to use with Rocket:
Now, in the local CA path, there is a rootCA.pem, you need to send this to your iPhone, I sent it to my iCloud email address.
Open the attachment, and you'll get a
Install profilewindow, click install, put your iPhone password and install it.Then open the settings app > go to general > Open first one, Info or About >Got to the bottom, open Certificate Trust Settings > Enable your cert
Then enter bitwarden and set the server URL to the same URL passed to mkcert.
With that, I can use the app with HTTPS, and a mkcert certificate.
@ghost commented on GitHub (Jan 11, 2019):
My server is on 192.168.0.19. I use Pihole as dns in my local server. Do you know how to configure Pihole to respond with server ip when bitwarden.local is called?
@dani-garcia commented on GitHub (Jan 11, 2019):
I never used pihole, but maybe this will work?
https://discourse.pi-hole.net/t/howto-using-pi-hole-as-lan-dns-server/533
Edit: Or, if it's acting as a DNS server, maybe modifying piholes
/etc/hostswould be enough?@ghost commented on GitHub (Jan 11, 2019):
Tried...
I will try: xip.io
@ghost commented on GitHub (Jan 11, 2019):
Setting local domain in Pihole fixed the problem with certificate on iOS.
Thanks for help