Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Turning on "Use HTTPS for GUI" in settings breaks the app GUI #19

Closed

Description

@KayoticSully

All because I got curious (an in an effort to fully test the app), I decided to turn on https. This happened to break the app. I don't think there is any real big error here, the GUI just does not load anymore and syncthing crashes after a long enough time trying to load the GUI.

Either TLS needs to be supported in the interface or that setting needs to be removed on the android app. I honestly am not sure if using TLS on the android app interface is even something that you should be able to do.

Activity

  1. Nutomic commented on May 28, 2014

    @Nutomic
    Contributor

    The problem is that the address attribute in config.xml only contains the host:port, but not the protocol (eg <address>127.0.0.1:8080</address>).

    @calmh What do you think about putting http(s)://127.0.0.1:8080 in there? (otherwise I could also read the tls attribute). I probably also need to handle the certificate to get API access, will look into that.

  2. rafi commented on May 30, 2014

    @rafi

    Same thing happened to me when I enabled the GUI login with user/password.

  3. Nutomic commented on May 30, 2014

    @Nutomic
    Contributor

    I suppose the login is also required to access the Rest API, so stuff breaks.

    I haven't looked into it, but it shouldn't be hard to read user/pw from config.xml and passing it ín on API calls.

    Also, I'd like to keep these settings in, as they're useful if you access the web interface from a different device. But they should probably be moved to "advanced settings" or something at some point after the native GUI is finished.

  4. rafi commented on May 31, 2014

    @rafi

    I can't get it back working, even tried uninstalling. couldn't find the config. un-rooted phone.

  5. Nutomic commented on May 31, 2014

    @Nutomic
    Contributor

    It should definitely be gone after uninstalling. Have you tried to reboot before installing again?

  6. icaruseffect commented on Jun 4, 2014

    @icaruseffect

    Clearing the app data fixed it for me. But all settings must be done again then..

  7. Nutomic commented on Jul 8, 2014

    @Nutomic
    Contributor

    Okay an update on this: I tried implementing it (on the "cert-pinning" branch), but it's really complicated. Syncthing uses .pem certificates, but Android requires .bkm, and I haven't figured out how to convert that in Java (converting on a desktop as most posts say doesn't help).

    If anyone has more knowledge about certificates in Java than me and wants to implement this, a pull request would be greatly appreciated.

  8. wolverineks commented on Dec 16, 2014

    @wolverineks

    You can find the config in storage/emulated/0/Android/data/data/com.nutomic.syncthingandroid/files/config.xml
    at the bottom change tls=true -> tls=false

  9. added this to the 0.6 milestone on Mar 22, 2015
  10. locked and limited conversation to collaborators on Nov 9, 2018
  11. added a commit that references this issue on Nov 12, 2023
    19991ab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions