Skip to content

Configure Proxy and Root CA store in Cryptomator settings and provide defaults for shared devices #3419

Description

@SailReal

Please agree to the following

Summary

Allow users to configure the Proxy and Root CAs used in the Cryptomator settings and provide a location for defaults on shared devices.

Motivation

More and more companies are protecting their infrastructure by exposing as few services as possible to the public. This is also true for Cryptomator Hub. If you deploy Cryptomator Hub on https://hub.leela.local for example, you will face two main problems:

  1. Even if your system trusts your Root CA which issued the certificate for hub.leela.local, Cryptomator will not. Instead, you need to modify the cacerts file bundled with the application as described in Error RKM7:2TU1:BGIR #2619 or modify the Cryptomator.cfg and override the Root CA store via option:

    java-options=-Djavax.net.ssl.trustStore=/path/to/your/truststore
    
  2. You may need a Proxy to connect to hub.leela.local. Cryptomator is shipped with the setting to use the Proxy configured in the system. If you do not want to configure it globally, or your system does not support it like most Linux desktop environments, you need to configure it in Cryptomator.cfg like this

    java-options=-Djava.net.useSystemProxies=false
    
    java-options=-Dhttp.proxyHost=hub.leela.local
    java-options=-Dhttp.proxyPort=3000
    java-options=-Dhttps.proxyHost=hub.leela.local
    java-options=-Dhttps.proxyPort=3000
    java-options=-Dhttp.nonProxyHosts=localhost|127.0.0.1|*.leela.local
    

The problem is that you have to change this on every release, which results in repackaging the applications, breaking the signature of the applications and adding a lot of complexity to the update process (Windows, MacOS, Linux) just to configure a Proxy and use different Root CA(s).

From a user perspective, it would be good to configure the Root CA(s) and Proxy settings in Cryptomator's settings so that the values are persisted, as many applications do, e.g. Firefox:

Also, if you think about shared managed devices, an IT admin should be able to place a template file for these properties into the system, persistent across updates and for all system users, so that when a new user logs on to the device, these properties are read from the shared location. After all, in this common scenario, which end user knows the correct configuration of the Proxy and the certificates of the Root CA(s) when they sleepily log on to their shared device for the first time on a Monday morning and would also need to have admin privileges?

Maybe we find a better way, but we could have a shared settings.json placed outside the user context, and on startup this is merged with the user specific settings.json where you can overwrite any values.


We try to prioritise issues as much as possible, but if you need this feature in a more timely manner, you may want to consider sponsoring this feature. Contact us at [email protected] for more information.

With sponsored features, the requirements are driven by the sponsor, but the resulting feature is available to everyone using Cryptomator. Instead of custom work, sponsors are willing to contribute features back to our platform so that all Cryptomator users can benefit! Also, sponsoring a feature is cheaper than custom development.

### Tasks
- [ ] https://github.com/cryptomator/cryptomator/issues/3674
- [ ] https://github.com/cryptomator/cryptomator/pull/3675

Activity

  1. changed the title [-]Configure proxy and Root CA store in Cryptomator settings and provide defaults for shared devices[/-] [+]Configure Proxy and Root CA store in Cryptomator settings and provide defaults for shared devices[/+] on Apr 30, 2024
  2. infeo commented on Dec 18, 2024

    @infeo
    Member

    For Windows we should use the Windows certifacte store, since IT admins manage there the certificates. Java offers access to two certifiate directories of the Windows cert store: WINDOWS-MY and WINDOWS-ROOT (see also orcale docs.

    A usage exaple can be found here: It basically creates an SSLContext with the Windows keystore set as key- and trustmanager, which in return can be used in any HttpClientBuilder::sslContext

    Note, that in order to use the store in a jpackage'd app, we need the module jdk.crypto.mscapi.

    For Linux, go language has a list of certifacte locations or reading from the env. We could enforce the users to have asingle certificates files (format PKCS12). Edit: Well, flatpak can get tricky (flatpak/flatpak#2721).

    For macOS, it is the system keychain.

  3. github-actions commented on Mar 9, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  4. added
    state:stale
    on Mar 9, 2026
  5. removed
    state:stale
    on Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions