mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-21 23:52:35 -05:00
Can't connect to server from IOS app when https is enabled #100
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 @ghost on GitHub (Sep 24, 2018).
Get "There is a problem connecting to the server"
I am using 1.2.0 docker container with ROCKET_TLS and ROCKET_PORT = 443
@mprasil commented on GitHub (Sep 24, 2018):
Hi can you paste the docker logs here? Just the starting part that prints the configuration used would be helpful. Also can you see any requests in the logs when you try to use the iOS app? Does the Vault interface work for you?
@ghost commented on GitHub (Sep 24, 2018):
Vault web interface works when opening in Chrome desktop but can;t open from ios and ios mobile bitwarden app
my server ip is https://192.168.0.19
https://pastebin.com/raw/AtH6hHwg
@mprasil commented on GitHub (Sep 24, 2018):
It looks like it starts with proper configuration. Are there any requests appearing in the logs when you try to use the iOS app? Do I understand right that you can't even use the Vault interface using Safari on iOS device?
@ghost commented on GitHub (Sep 24, 2018):
There is no requests in logs when trying to access from iOS.
I bet this is a problem with self signed cert on iOS.
"Do I understand right that you can't even use the Vault interface using Safari on iOS device?" Yes, exactly
My cert is:
You can decode it here: https://www.sslshopper.com/certificate-decoder.html
Can you provide proper command to create self signed certificate for my docker container?
@dani-garcia commented on GitHub (Sep 24, 2018):
I'm using bitwarden_rs on iOS and it works for me. I'm running the server directly (without docker), behind my own domain and with let's encrypt certs. Maybe iOS blocks self signed certs?
@ghost commented on GitHub (Sep 24, 2018):
I think there is a problem with self signed certs on iOS, can't generate the proper one.
openssl req -x509 -newkey rsa:2048 -sha256 -nodes -keyout key.key -out cert.crt -subj "/CN=192.168.0.19" -days 3650This command generate cert and key but still cant connect on iOS
@mprasil commented on GitHub (Sep 24, 2018):
Can you add that cert as trusted on your iOS device?
@ghost commented on GitHub (Sep 24, 2018):
I can't. No option to install it when opening from mail
@mprasil commented on GitHub (Sep 24, 2018):
I'm on mobile, so can't really test this, but I wonder if iOS will accept certificate for IP address. Quick googling around suggests, that it might not.
@ghost commented on GitHub (Sep 24, 2018):
Make it works on Safari (need to add port: https://192.168.0.19:443) but still no success with app.
@ghost commented on GitHub (Sep 25, 2018):
I made it works. Need to create CA certificate then server certificate