When connecting to a private HTTPS git repository, a problem may be caused by a custom (self-signed) certificate. Make sure to install the latest JRE and then change the JAVA_HOME
of Jira server.
If the above solution doesn’t work, see below for the steps to workaround this issue:
-
From your Jira Server, clone the repository manually using the git client.
Example:
cd /jira/home cd data/git-plugin git clone --mirror https://my-self-signed-repo/project.git
-
Make sure the Jira user has access to the folder above.
-
Configure the repository to disable verification of the SSL certificate:
Run
git config http.sslVerify false
in the repository folder.Example:
cd project.git git config http.sslVerify false
-
Add repository via Connect wizard ➜ Advanced Setup.
-
Set Repository root to the folder that was used in step 1.
-
The clone will be kept up-to-date and the SSL verification issues will be ignored.
There are alternative solutions to make Java trust this certificate. Refer to the good articles from Atlassian which focuses on helping to resolve SSL Verification Issues: