I am using:
Red Hat 7.5
Postgres 9.6
Atlassian Service Desk 7.10.2
I have followed postgres's guide to setting up SSL: https://www.postgresql.org/docs/9.6/static/ssl-tcp.html
This works perfectly on my confluence server (Confluence uses jdbc connector to connect over ssl to postgres 9.6), but on my Service Desk server when I add: ssl=true to: /var/atlassian/application-data/jira/dbconfig.xml
<url>jdbc:postgresql://XXX.XXX.XXX.XXX:5432/servicedesk?ssl=true</url>
I recieve this error: >LOG: could not accept SSL connection: sslv3 alert certificate unknown
when I go to the Service Desk website I see an error indicating:
JIRA failed to establish a connection to your database.
This could be because:
There are several other solutions you can try, review our documentation and see what works for you.
If I add this: sslfactory=org.postgresql.ssl.NonValidatingFactory
so
<url>jdbc:postgresql://XXX.XXX.XXX.XXX:5432/servicedesk?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory</url>
when I go to the Service Desk website (which is https and the SSL on the HTTPS works just fine) I am presented with the initial setup menu (https://XXX.XXX.XXX.XXX:8443/secure/SetupMode!default.jspa)
My pg_hba.conf file is set to allow:
hostssl all all 0.0.0.0/0 md5
I have tried
hostssl db db_user 0.0.0.0/0 md5
hostssl db db_user 0.0.0.0/0 cert
hostssl db db_user 0.0.0.0/0 cert clientcert=1
All of my certs (Intermediate, root, and server) are loaded into the java keystore and placed in the correct location for postgres
My database (and db user) matches the CN of my cert for the Service Desk server.
If anyone has any suggestions I would appreciate it.
Hi Joel,
Sorry you're having trouble! Let's gather some more information to see if we can figure out what's up.
openssl s_client -connect <yourpostgres-ip>:5432/servicedesk -prexit
I'll take a look and see what ciphers should be supported in the meantime - curious that it seems to work for Confluence with the same postgres setup!
Thanks,
Daniel
Thank you for your response.
1. I have restarted jira (many times)
2. I have been using the atlassian java keytool (/opt/atlassian/jira/jre/bin/keytool) and have verified my certs are loaded. I am using https on the webserver portion and that works just fine (on both confluence and service desk)
3. I am not sure that you can test this with openssl as it does not work with my working database either
https://www.postgresql.org/message-id/17849.1436537026%40sss.pgh.pa.us
EXAMPLE Log data from confluence database:
5bda5.647 2018-07-23 07:36:05 EDT confluence.example.com (51588) >LOG: connection authorized: user=user database=confluence SSL enabled (protocol=TLSv1.2, cipher=ECDHE-RSA-AES256-GCM-SHA384, compression=off)
There is (as far as I can tell) nothing wrong with my postgres setup as it works just fine on another database that was built identically.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Joel,
Check out the following Guide for some troubleshooting steps to take on this error, and narrow it down a bit more:
Regards,
Earl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.