Configure TLS from the Command Line
Built-in TLS secures the public listener with TLS 1.2 and TLS 1.3. YouTrack reads its certificate and private key only at startup. Client-certificate authentication is not supported.
Switching to HTTPS Mode
Certificate and Key Requirements
conf/tls/tls.crt: a PEM certificate chain, with the server certificate first, followed by any intermediate certificates.conf/tls/tls.key: the matching, unencrypted PKCS#8 PEM private key. Use RSA with at least 2048 bits, or EC.
If either file is missing, malformed, or incompatible with the other, startup fails. Restrict access to the private key to the account that runs the container. For production, use a certificate from a trusted Certificate Authority with host names matching the base URL.
To enable built-in HTTPS:
Stop the container if it is running.
Place both files in the
tlssubdirectory of the host directory mapped to the container'sconfdirectory. See TLS Server Certificates and Keystores.Set the base URL to the public HTTPS address. Check the listener port: without an explicit override, TLS uses container port
8443. A listener port preserved during an upgrade or an explicitjetbrains.youtrack.portremains in effect.Recreate the container with the same mounts and environment settings, updating port mappings as needed. For the default TLS port, publish HTTPS with
-p 443:8443.
Using an Existing Keystore
For a new TLS configuration, export the certificate chain and matching private key from your keystore to the PEM files described above. The server does not read a JKS or PKCS#12 keystore directly. When upgrading from a version earlier than 2026.3, YouTrack automatically imports the existing server certificate and private key.
Replace a Certificate
Stop the container, replace both conf/tls/tls.crt and conf/tls/tls.key, and start the container again. Replacing files without a restart has no effect.
HTTP Redirects
With built-in TLS enabled, one public listener serves HTTPS and accepts plaintext HTTP for redirection on the same port. HTTP GET and HEAD requests receive 307 Temporary Redirect. Other HTTP methods receive 400; API clients must use HTTPS directly.
To redirect host port 80, map it to the HTTPS container port too, for example -p 443:8443 -p 80:8443. There is no separate redirect listener. Use the actual preserved port for a migrated installation.
Switching to HTTP Mode
To disable built-in TLS:
Move both TLS files out of
conf/tlsto a secure location.Review the base URL, listener override, and port mappings. Without TLS or an override, the container listens on
8080. When a reverse proxy terminates TLS, keep the public HTTPS base URL and forward proxy traffic to the HTTP listener.Start or recreate the container with the updated deployment settings. See Reverse Proxy Configuration.