Use a custom certificate
Your server administrator manages the HTTPS certificate for your Zulip server. Public servers normally use a certificate issued by a trusted certificate authority. An isolated corporate server may instead use an internal certificate authority or a self-signed server certificate.
Most browsers will show a warning if you try to connect to a Zulip server with a self-signed certificate.
Before accepting an exception or importing a certificate, confirm the server’s address and the certificate’s fingerprint with your administrator through a trusted channel. Follow their instructions for your browser and platform.
If the certificate is unexpected or cannot be verified, stop and contact your administrator. Trusting a malicious certificate could expose your account credentials and messages.
Desktop
Section titled “Desktop”Current desktop and mobile app
Section titled “Current desktop and mobile app”The current Zulip app does not have an Add Custom Certificates screen or a setting to bypass certificate verification. Ask your administrator to provide a certificate chain accepted by your app build, or deployment instructions for your platform. Importing a certificate into a browser’s store does not guarantee that the native app will trust it.
Electron desktop client
Section titled “Electron desktop client”The steps below apply to the older Electron client, if your administrator provides it. Certificate storage varies by operating system and the Chromium version bundled with that client. Import only the verified certificate or certificate authority supplied by your administrator.
- Hit
Cmd+Spaceto bring up Spotlight Search, type Keychain Access, and press Enter. - From the File menu, choose Import Items…
- Navigate to the certificate file, then click Open.
- Right-click the newly-added certificate, and click Get Info from the context menu.
- Expand the Trust section.
- Select Always Trust for the Secure Sockets Layer (SSL) option.
- Close the window. You will be prompted for your password to verify the change.
- Restart the Zulip Desktop application.
On Windows, ask your administrator to import the verified certificate into the appropriate Windows certificate store. A certificate authority belongs in Trusted Root Certification Authorities; a self-signed server certificate may require a different store. The following Chrome entry point may be available, depending on its version and your organization’s policy.
- Open Google Chrome.
- From the Chrome menu (⋮) in the top-right, select Settings.
- Open the certificate management page in Privacy and security → Security. Menu labels vary by Chrome version.
- If available, open the Windows certificate manager and select the store specified by your administrator.
- Select Import… and follow the import wizard.
- Navigate to the certificate file, then click Open.
- Confirm the import.
- Restart the Zulip Desktop application.
The required packages and steps vary by distribution; see the Chromium
documentation for detailed instructions. Chromium uses an NSS
database. Newer Chromium versions default to $HOME/.local/share/pki/nssdb;
an existing $HOME/.pki/nssdb database may still be used. Choose the database
used by your client. For a verified self-signed server certificate, the
command for the older database location is:
certutil -d sql:$HOME/.pki/nssdb -A -t "P,," -n zulip \ -i path/to/certificate.pem"P,," trusts a server certificate. For a verified root certificate
authority, the SSL trust flag is "C,,"; for an intermediate certificate,
it is ",,". Do not use a server certificate’s trust flags for a CA.
The nickname zulip is a local identifier, not a product or server address.
You will need to restart the Zulip Desktop application to pick up the new certificate.