SSL verify certificate Error when testing JIRA service

I think I have the same issue as issue 2309 with Gitlab Omnibus 8.9.3 on a Debian 7. Our JIRA server admin recently decided to secure it with an SSL certificate. Since this moment the Gitlab auto-push comment to JIRA on commit doesn't work anymore. If anyone could help me to find a workaround I'll be so grateful.

First of all, my JIRA ssl certifcate is not a self-signed one and comes from: https://www.gandi.net From the Gitlab server, the "wget https://myJIRA.com" was failing to verify the certifcate so I added the certifcate to /usr/local/share/ca-certificates/ and ran "sudo update-ca-certificates" Now the "wget https://myJIRA.com" works. I've tried to add this same certificate to the Gitlab certification authorities by following this: http://docs.gitlab.com/omnibus/common_installation_problems/README.html#install-custom-certificate-authorities Then gitlab-ctl reconfigure But I still get an "error 500" when I click on "Test settings" in the JIRA service config page of my Gitlab project. The error traced in /var/log/gitlab/gitlab-rails/production.log is:

Started GET "/products/ECSIMAGING/services/jira/test" for 127.0.0.1 at 2016-07-01 13:04:45 +0200
Processing by Projects::ServicesController#test as HTML
  Parameters: {"namespace_id"=>"products", "project_id"=>"ECSIMAGING", "id"=>"jira"}
Completed 500 Internal Server Error in 396ms (ActiveRecord: 3.5ms)

OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: certificate verify failed):
  app/models/project_services/jira_service.rb:102:in `test_settings'
  app/models/project_services/jira_service.rb:63:in `execute'
  app/models/service.rb:89:in `test'
  app/controllers/projects/services_controller.rb:49:in `test'
  lib/gitlab/middleware/go.rb:16:in `call'

I really don't care if Gitlab verifies my JIRA server certificate or not. So as suggested in a comment of issue 2309 I tried to change the following line in /opt/gitlab/embedded/service/gitlab-rails/app/models/project_services/issue_tracker_service.rb:

response = HTTParty.head(self.project_url, verify: true)

by:

response = HTTParty.head(self.project_url, verify: false)

But the OpenSSL error in the production log remains the same after 'gitlab-ctl reconfigure'. Finally looking at /opt/gitlab/embedded/ssl/openssl.cnf I saw this:

####################################################################
[ ca ]
default_ca      = CA_default            # The default ca section

####################################################################
[ CA_default ]
dir             = ./demoCA              # Where everything is kept

I thought this "./demoCA" may be unexpected so I tried:

dir             = ./              # Where everything is kept

But the OpenSSL error in the production log remains the same after 'gitlab-ctl reconfigure'.