Running Confluence over SSL

Good Day All,

I have successfull enabled SSL on my lab confluence instance and will like to implement it in a few weeks on two production instances. By default when you generate the self signed certificate its a few months; therefore, I will like to know how can I create a certificate for a year or two.

I would also like to know if the same document "https://confluence.atlassian.com/doc/running-confluence-over-ssl-or-https-161203.html" can be used when the certificate has expired to renew it?

1 answer

2 votes
Daniel Eads Community Champion Apr 12, 2017

Hi Earl,

When pushing this out to your production instance, you'll want to get a certificate from a trusted Certificate Authority such as Verisign, GeoTrust, Comodo, etc. These providers charge a fee for their service. When you purchase a certificate through a Certificate Authority, you can choose what length of time the certificate should be valid for.

As a rule of thumb, it's easier to manage SSL certificates through a reverse proxy such as nginx or Apache than directly through Tomcat (the application server for JIRA and Confluence). You'll also get some side benefits by using a reverse proxy such as better connection handling, gzip compression, and the ability to make use of http/2.

Check out this Atlassian article on setting up nginx with HTTPS in front of Confluence: https://confluence.atlassian.com/confeap/running-confluence-behind-nginx-with-ssl-849150880.html

I've also written some more detailed instructions on getting nginx set up if you're using CentOS/Ubuntu: https://danieleads.com/turbo-charging-your-confluence-with-nginx/ - small caveat that my article doesn't contain the extra lines in your configuration that you need to get collaborative editing working in Confluence 6.0 - but this only affects Confluence 6.0 and not any versions before/after 6.0.

Hi Daniel,

Thanks a lot for your response, it's highly appreciated, I was under the impression that Atlassian does not support any other web server apart from Tomcat.

I will give Nginx a try in the lab instance and see how it goes.

Thanks again.

Josh Steckler Community Champion Apr 13, 2017

Hey Daniel that's a great nginx tutorial! I'll have to try that myself. The chart with the load times, wow. I'll have to benchmark my current apache vs nginx.

Davin Studer Community Champion Apr 14, 2017

As of Confluence 6.1 yo don't need any config changes on the reverse proxy to get collaborative editing working over SSL. :)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

485 views 19 10
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you