Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confluence SSL to MySQL 5.7 Edited

We are trying to connect Confluence to MySQL 5.7 using SSL via a google MySQL managed instance.  We have 3 files, server-ca.pem, client-cert,pem, client-key.pem.  I've imported the server certificate into the trust store and created a pkcs12 file with the cert files.  This file was then imported into a keystore.

https://cloud.google.com/sql/docs/mysql/connect-admin-ip#connect-ssl

I'm having trouble passing the keystore location to Confluence java via the setenv.sh file in confluence/bin.  Adding useSSL=true onto the jdbc url in dbconfig.xml gives me an access denied for confluence user message on MySQL.  If I allow insecure connections Confluence user is able to connect.  I was able to get this to work with Jira by following this article but its not working for Confluence:

https://stackoverflow.com/questions/41790254/mysqlgoogle-cloud-sql-user-access-denied-only-from-java

Any ideas on how to pass the keystore location variables? Here is my setenv.sh lines currently which aren't working:

CATALINA_OPTS="-Djavax.net.ssl.keyStore=/usr/lib/jvm/jdk1.8.0_271/bin/generated/keystore ${CATALINA_OPTS}"
CATALINA_OPTS="-Djavax.net.ssl.keyStorePassword=password ${CATALINA_OPTS}"

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
6.15.1
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

177 views 0 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you