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.
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:
git config http.sslVerify falsein the repository folder.
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:
Prev: Automatically connect to HTTPS git repositories with self-signed SSL certificates or other SSL issues