-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to log on via iPhone #126
Comments
Hello :D This maybe caused by a couple of factors, please check:
If I remembered it correctly, iPhone don't by default trust self-signed HTTPS certificate. You might have to setup the phone to make it trust the certificate/CA. Hope it helped :) |
Hi, Here is my docker compose, no HTTPS set ... version: '3.3' |
Sshwifty can only be accessed when HTTPS is enabled, and iOS require an valid certificate for the HTTPS service so it would allow it to be accessed. Two conditions must both be met, to put it simply:
|
thanks for the reply. How do i go about enabling HTTPS and issue a certificate if running this locally only? |
Thanks Ni, I got this from here. The best option would probably just setting up a simple reverse proxy in Docker. Although you must know simple Docker networking, and you need a domain, a reverse proxy makes it quick and easy to set up SSL. Can we move this conversation to discord to easily discuss what you need to do? CJendantix#1183 |
Hi, The short answer I'm afraid is No. The limitation is actually not enforced by Sshwifty, instead it's a security policy implemented by the web browser (called Secure contexts). Sshwifty require I'm not aware any web browser is allowing web page to access Originally posted by @nirui in #101 (comment) |
@VinneyUK Based on what I've read online, you absolutely CAN access HTTPS services on iOS device even if the service uses self-signed certificate. However, it require some setup in order for the iOS device to trust the certificate (actually the Root CA in this case), the detail on how to do that can be found on: https://developer.apple.com/library/archive/qa/qa1948/_index.html. That said, I don't really have any iOS device, so I guess you will be on this adventure alone :) On the Sshwifty side, HTTPS can be enabled via @CJendantix The answers posted on Discord can only be read by people who uses Discord, not everybody here are welling to do that. If you have answer to the question, you're welcome to post it here so later users might also be helped. Thanks! |
That's not what I meant, I was asking them to message me on discord as I see it easier to use for back-and-forths, but if they didn't have discord we could keep using this issue. I have always seen it annoying when I have to search the whole internet for answers so I would post the final answer here before asking them to mark it as solved, but thanks for the concern. Also I find it much less of a hassle to use a reverse proxy service than to manually set up https, and they probably don't already have a cert ready. |
I don't really think a reverse proxy can resolve the problem since the limit is imposed by the iOS device (at the client side), sorry :) |
Hi, I get this error when trying to log in via my iPhone
Unable to connect to the Sshwifty backend server: TypeError: undefined is not an object (evaluating 'window.crypto.subtle.importKey')
any ideas?
The text was updated successfully, but these errors were encountered: