# Bug JIM-92 - Imprecise error for SSL errors when testing Jira connection

Project: Stream Jira to OpenProject data Migrator
Status: closed
URL: https://community.openproject.org/work_packages/JIM-92

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Integrations / Jira |
| Target versions | 17.5.0 |
| Observed in versions | 17.4.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.4.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Andrej Sandorf |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Have a Jira DC installed with a SSL certificate not recognized by OpenProject (self-signed certificate, custom CA, etc)
    
2.  Go to the Jira migrator and add a configuration
    
3.  Add the url and token
    
4.  Click &quot;Test configuration&quot;
    

### What is the buggy behavior?

*   The connection fails with the error &quot;An unexpected error occurred while testing the connection&quot;
    
*   The logs are more interesting: `OpenSSL::SSL::SSLError - SSL_connect returned=1 errno=0 peeraddr=10.12.34.56:8443 state=error: certificate verify failed (self-signed certificate in certificate chain)`
    

### What is the expected behavior?

1.  OpenProject can display more helpful error message, pointing the admin user towards a SSL error without having to look at logs. Having the exact SSL error could be helpful (in my test, it was the ca cert which was self signed because the user used a custom PKI, but it could be any other ssl error)
    
2.  If possible, it could give the CN of the SSL certificate it tries to connect to, or information about validity dates of the certificate, if relevant
    

### **Logs**

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/921140/content">

###   

### Environment information

**OpenProject installation type**

*   Docker-compose installation
    

**OpenProject version**

17.4.0
