# Server Certificates

> **TL;DR**
> `File | Settings | Appearance & Behavior | System Settings | Server Certificates` for Windows and Linux
>
>
>
> `IntelliJ IDEA | Settings | Appearance & Behavior | System Settings | Server Certificates` for macOS
>
>
>
> `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) ![the Settings icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.settings.svg)

IntelliJ IDEA provides its own storage for trusted certificates.

Server certificates are used to establish secure connections for various tools and services you may have configured in the IDE. These certificates affect tools such as Gradle, Maven, Git repositories, remote deployment servers, and web services or APIs using HTTPS. Adding a trusted certificate ensures that all integrated tools requiring secure connections can trust the specified certificates.

IntelliJ IDEA trusts server certificates through the JDK's default trust store (`cacerts`), which contains well-known root certificate authorities. If a certificate is not in there, you can either add it to IntelliJ IDEA's own trust store (affects only the IDE) or to the JDK trust store (affects all Java apps using that JDK, including Gradle and Maven).

![Server Certificates page in Settings](https://resources.jetbrains.com.cn/help/img/idea/2026.2/server_certificates.png)

| Item | Shortcut | Description |
| --- | --- | --- |
| Accept non-trusted certificates automatically |  | Select this option if you want non-trusted certificates (that is the certificates that are not added to the list) to be accepted automatically, without sending a request to the server. |
| ![Add](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.add.svg) | `Alt+Insert` (Windows), `⌘ N` (macOS), `⌃ N` (IntelliJ IDEA Classic (macOS)), `⌘ N` (macOS System Shortcuts), `Alt+Insert` (XWin), `Alt+Insert` (GNOME), `Alt+Insert` (KDE), `Alt+Insert` (Emacs), `Alt+Insert` (Sublime Text), `⌘ N` (Sublime Text (macOS)), `Alt+Insert` (NetBeans), `Alt+Insert` (Visual Studio), `⌘ ⌃ N` (Visual Studio (macOS)), `Alt+Insert` (Eclipse), `⌘ N` (Eclipse (macOS)) | Add a trusted server certificate to the list. Select the certificate file in the dialog that opens.     The certificate file should have an extension `.crt`, `.cer` or `.pem`.     For a trusted certificate, the certificate information is shown in the lower part of the page.    |
| ![Remove](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.remove.svg) | `Alt+Delete` (Windows), `⌘ ⌦` (macOS), `⌘ ⌦` (IntelliJ IDEA Classic (macOS)), `⌘ ⌦` (macOS System Shortcuts), `Alt+Delete` (XWin), `Alt+Delete` (GNOME), `Alt+Delete` (KDE), `Alt+Delete` (Emacs), `Alt+Delete` (Sublime Text), `⌘ ⌦` (Sublime Text (macOS)), `Alt+Delete` (NetBeans), `Ctrl+R, D` (Visual Studio), `⌘ R, D` (Visual Studio (macOS)), `Alt+Delete` (Eclipse), `Alt+Delete` (Eclipse (macOS)) | Remove the selected trusted certificate from the list. |

The information about added certificates is stored in `ssl/cacerts` inside the IDE [configuration
directory](directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#config-directory).

> **Tip:**
> Learn more about [trusted root certificates](ssl-certificates.html) that define which servers can be trusted during secure (HTTPS/SSL/TLS) communication.

## Untrusted server certificate

IntelliJ IDEA displays an Untrusted Server's Certificate warning when connecting to services it does not trust.

Learn more about possible reasons and solutions from the [Support Knowledge Base](https://youtrack.jetbrains.com/articles/SUPPORT-A-1939) in YouTrack.

![Untrusted Server's Certificate dialog](https://resources.jetbrains.com.cn/help/img/idea/2026.2/untrusted_certificate.png)

## See also

### Reference

### Procedures

[Trusted root certificates](ssl-certificates.html) [HTTP Client](http-client-in-product-code-editor.html)

