Repository navigation
Description
Please agree to the following
- I have searched existing issues for duplicates
- I agree to follow this project's Code of Conduct
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:
-
Even if your system trusts your Root CA which issued the certificate for
hub.leela.local, Cryptomator will not. Instead, you need to modify thecacertsfile bundled with the application as described in Error RKM7:2TU1:BGIR #2619 or modify theCryptomator.cfgand override the Root CA store via option:java-options=-Djavax.net.ssl.trustStore=/path/to/your/truststore -
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 inCryptomator.cfglike thisjava-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
[-]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[/+]infeo commentedon Dec 18, 2024
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-MYandWINDOWS-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.
github-actions commentedon Mar 9, 2026
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.