When working with Git in IntelliJ and encountering the SSL
certificate issue (SSL certificate problem: self-signed certificate in
certificate chain), you have several options to bypass or resolve this error:
1. Disable SSL Verification for Git in IntelliJ
This is a temporary workaround and is not recommended for
secure environments.
- Open IntelliJ
and go to File > Settings (or IntelliJ IDEA > Preferences
on macOS).
- Go to Version
Control > Git.
- In the
Path to Git executable field, you can temporarily bypass SSL
verification by running the Git pull with an additional argument:
Ø
Change the Git command in Path to Git
executable to:
bash
git -c
http.sslVerify=false |
Ø
This disables SSL verification temporarily for
this session.
2. Disable SSL Verification Globally in Git (Not
Recommended)
To disable SSL verification globally, you can do the
following in your terminal. This affects all Git operations, including those
inside IntelliJ.
bash
git config
--global http.sslVerify false |
⚠️ Warning: Disabling SSL
verification globally can expose you to security risks, so this is not
recommended for long-term use.
3. Add the Self-Signed Certificate to Trusted
Certificates
If you have access to the self-signed certificate file, you
can add it as a trusted certificate for Git.
- Obtain
the certificate file from the server or administrator.
- In the
terminal, configure Git to use this certificate:
bash
git config
--global http.sslCAInfo /path/to/your-certificate.pem |
This method lets Git validate the certificate without
disabling SSL verification entirely.
4. Update Git and Git Tools
Sometimes, updating Git and its related SSL libraries can
resolve certificate issues, especially if you’re using an outdated version.
Ø Update
Git using your package manager or download the latest version from Git’s official site.
5. Switch to SSH Instead of HTTPS in IntelliJ
Switching to SSH is a good long-term solution, as it avoids
SSL issues entirely.
- Open IntelliJ
and go to File > Settings (or IntelliJ IDEA > Preferences
on macOS).
- Go to Version
Control > Git and click on GitHub or your repository host.
- Under Git
Remotes, switch the remote URL from HTTPS to SSH.
bash
git@github.com:username/repository.git |
Or
git remote
set-url origin git@github.com:username/repository.git |
- Set up SSH keys if not already done.
6. Install the Self-Signed Certificate in Java’s
TrustStore (for IntelliJ)
IntelliJ might be relying on Java’s TrustStore. You can add
the certificate to Java’s TrustStore.
- Find
the location of the cacerts file for the JDK IntelliJ is using (typically
in JAVA_HOME/lib/security).
- Use
the following command to import the certificate:
bash
keytool
-import -alias mycert -keystore $JAVA_HOME/lib/security/cacerts -file
/path/to/certificate.pem |
- Restart
IntelliJ after adding the certificate.
7. Ensure IntelliJ Uses the Latest Git Version
Sometimes, updating Git to the latest version resolves SSL
issues, as newer versions may have updated SSL libraries.
By using these solutions, you should be able to address the
SSL certificate issue and resume using Git within IntelliJ effectively.
8. Trust the Certificate in Your System (for
Corporate/Organization Certificates)
If you're on a corporate network, ask your IT team if they
can install the organization’s root certificate into your system’s trusted
certificate store. This may fix the issue across multiple applications, not
just Git.
Following these steps should help resolve the SSL
certificate issue with minimal security risks.
For More Git related information, visit
For More Spring Related information, visit
Ø
Mastering
Debounce, Throttle, Rate Limit & Backoff in Java
Ø
Deep
understand of ThrottlingFilter with RewritePath filter in cloud gateway
Ø
Setting
up Custom Filters using Debouncing, Throttling, Rate Limiting, and Exponential
Backoff
Ø
Custom
gateway filters in Spring Cloud Gateway
Ø
Custom
Filters in Microservices
Ø
Mastering
Debounce, Throttle, Rate Limit & Backoff in Java
Ø
Microservices:
Custom Filters for Debouncing, Throttling, Rate Limits & Backoff
Ø
Spring
Cloud Gateway uses a RewritePath filter
Ø
How
to call rest api from java code
Ø
Key
Components of Apache Kafka for Scalable Messaging
Ø
Build
a Video Stream Microservice with Kafka & REST API in Java
Ø
Kafka
general questions and answers
For More DSA Related information, visit
Ø
Bench
mark of compiler using Ackerman function
Ø
To
check if the rows of a matrix are circularly identical in Java
Ø
Frequency
Weaving Logic & Spiral Printing of a Rectangle
Ø
Zig Zag
Matrix print multiple way
Ø
Greedy
Algorithm’s or knapsack algorithms
Ø
understanding
recursive method for binary tree
Ø
Dynamic
Programming: Max Square Sub-matrix of 1s in a Matrix
Ø
Previous and
Next Date Palindrome
Ø
Karatsuba's
Algorithm for multiplying two large numbers
Ø
Multiplication
In different Way
Ø
How
to draw a Tree from array of integer
Ø
Position
of robot after given movements
Ø
Alphanumeric
Random Number generator
Ø
Solving
Tiger-Goat-Boatman Puzzle: BFS & DFS River Crossing
Ø
Dijsktra
Shortest Path for directed an undirected graph
For More Java Related information, visit
Ø
Streams
Lambdas Collectors and Functional Interfaces in Java 8
Ø
Java
8 support static method or default method or both in the interface
Ø
Serialization
understanding
Ø
Garbage
Collection Under Standing
Ø
How
work Garbage Collection in Java
Ø
Under
Standing Of Mutable and Immutable Class
For More sort information, visit:
Ø
Selection
Sort with iteration wise per step
Ø
Bubble
Sort with each iteration how it is work
Ø
Merge
sort of Each step how it is working
Ø
Quick
Sort per iteration what happen
Ø
Sorting
Of a list multiple attribute wise two technique
Ø
Seat
Arrangement in Sorting Order Like 1A-1E, 3C-3G etc
Ø
How
to sort 10 billion numbers
Ø Merge Sort simple under standing
For Math information, visit:
Ø
Calculating
the area of a triangle
For Design information, visit:
Ø
Mastering
Design Patterns Practical Implementation Tips
Ø
How
to draw sequence diagram and other diagrams using plantuml
Ø
Time
Analysis for Congested Routes Using Shortest Path Algorithms
For Custom information, visit:
Ø
Custom
ArrayList By Java Source code
Ø
Custom
SinglyLinkList By java code
Ø
Custom
Doubly LinkList By java
Ø
Custom
Stack using an Array in Java code
Ø
Custom
Combination and permutation program
Ø
Custom
middle Element of array
Ø
Find
Middle & Reverse a Custom Linked List Using Iteration
Ø
Detect
& Handle Infinite Loops and Cycles in Linked Lists
Ø
Custom
Palindrome of a link list
Ø
Creating
a custom HashMap in Java
Ø Custom Combination and permutation program
For Security information, visit:
Ø
Asymmetric
Encryption: Public Key for Encryption, Private for Decryption
Ø
Symmetric:
Encryption and decryption by same key
Ø
Asynchronous
Encryption and decryption without file only key pass
Ø
public
key encryption and private key decryption with keystore file
Ø
OWASP
(Open Web Application Security Project)
Ø
To
securely obtain employee information utilizing TLS 1.3 or TLS 1.2
For Tools information, visit:
Ø
Auto-Update
Batch File with Latest JAR & Start App Automatically
Ø
Connectingto IBM WebSphere MQ in Java
Ø
How
to create maven project
Ø
VisualVM
monitoring like jconsole
Ø
Stylus
studio convert edifact message
Ø
JConsole
Monitoring for Java Standalone or Web application project
Ø
Apache
Cluster router load blancer
For Cloud information, visit:
Ø
creating
a hierarchical diagram for cloud logging
Ø
A
hierarchical structure that includes a broader range of google cloud services
For Chemistry information, visit:
Ø
Molecular
weight of chemistry in Java code
Ø
To
generate a chemical formula look using HTML
Ø
Orbitals
and Electron Configuration Hunds Rule
For Other information, visit
Ø
String
to xml or html Beautifier
Ø
How
to convert XML to Object and Object to XML
Ø
Convert
Floating-Point Values from SQL Server to Oracle in Java
0 Comments