Cannot get HTTPS working after Confluence upgrade to 6.15.2
Asked by Jack Yau:

I have followed the step by step instruction in creating a self signed certificate but still cannot get HTTPS working. Our final goal is to use our private wildcard certificate. Please assist!


Answers:
author: Shannon S
body: Hello Jack,

Welcome to Community! It's nice to meet you.

Were the instructions you used for the self-signed certificate from Atlassian? Would you be able to show us what you've followed so far? I believe you might have already reviewed the below article?

* [Running Confluence Over SSL or HTTPS](https://confluence.atlassian.com/doc/running-confluence-over-ssl-or-https-161203.html)

If you can tell us exactly the error you are experiencing I am happy to help with this.

Regards,

Shannon

comments: author: Jack Yau
body: Yes, I followed the same steps from that documentation. I first tried the self signed certificate which is very simple and straightforward. But when I launch the web browser https://localhost:8443, it doesn't work. So I then tried using Private Certificate via those steps and still not successful. I am not getting any errors, the page just doesn't open. However, It still opens when I launch http://localhost:8090.


author: Shannon S
body: Jack,

Thank you for the follow-up!

When you open the page in your browser, I could recommend opening Developer Tools and seeing what occurs there. You can check the Network tab, and it'll let you know what it's being stuck on.

I'm also assuming your SSL isn't going to be setup for simply 'localhost' and you have a URL for it? I would then say you [run this test on your SSL site](https://www.ssllabs.com/ssltest/) and see what the problem might be.

Lastly, you can find any errors your Confluence instance is generating by having a look at your server logs. Take a look at [Working with Confluence Logs](https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html) for more details if you aren't sure about that.

Regards,

Shannon


author: Jack Yau
body: But this server is hosted in the internal network only. It's not accessible from the outside. I can't run that SSL site test.

As a test, I had setup a brand new server installed with the Confluence evaluation. I was simply testing the self signed certificate and still couldn't get it to work.

- I created the self-signed certificate per the instruction by running the keytool command.

- I modified the server.xml.

- I changed the Confluence base URL.

- I added security constraint to redirect all URLs to HTTPS.

What am I missing here? It should be straight forward.


author: Shannon S
body: Jack,

In that case, can you help me to understand what exactly happens when you say the SSL with HTTPS isn't working?

The other two steps I recommended earlier can help us to understand that.

1. Open Developer Tools and seeing is occurring there. You can check the Network tab, and it'll let you know what it's stuck on.
2. Find any errors your Confluence instance is generating by having a look at your server logs. Take a look at [Working with Confluence Logs](https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html) for more details if you aren't sure about that.

You can also try clicking on the lock in your browser address bar that you see when you visit your site securely:

![Screenshot 2019-05-08 at 10.36.49.png](https://community.atlassian.com/t5/image/serverpage/image-id/53831iEB5B92112FB66F15/image-dimensions/204x90?v=v2 "Screenshot 2019-05-08 at 10.36.49.png")

Just send along any details that it provides there and it can help us to narrow down the issue. Feel free to censor any private site details in your screenshot.

Thank you!

Regards,

Shannon


author: Jack Yau
body: When I launch the website with https, it just doesn't go anywhere with the following:

This page can't be displayed

?Make sure the web address <https://ahrq-confluence.itsc.hhs-itsc.local:8443> is correct.  
?Look for the page with your search engine.  
?Refresh the page in a few minutes.

.


author: Jack Yau
body: I found this error from the log. What does that mean?

Caused by: java.lang.IllegalArgumentException: Failed to load keystore type \[JKS\] with path \[C:\\Windows\\system32\\config\\systemprofile/.keystore\] due to \[Illegal character in opaque part at index 2: C:\\Windows\\system32\\config\\systemprofile/.keystore\]


author: Shannon S
body: Hello Jack,

Thank you for providing those details.

Could you have a look at your [Viewing System Information](https://confluence.atlassian.com/doc/viewing-system-information-150499.html) page and let us know which JRE your Confluence is using according to that page?

The problem is that there's a mismatch with which keystore your cert was installed into vs the Java that Confluence is actually using. The logs appear to indicate to us that it's using the System Java.

You may need to switch to the JRE that came with Confluence, if this is the one that Confluence believes itself to be using. Have a look below for steps on that, starting at step 2:

* [Running Confluence over SSL or HTTPS \> Option 2: Use a certificate issued by a Certificate Authority (recommended)](https://confluence.atlassian.com/doc/running-confluence-over-ssl-or-https-161203.html#RunningConfluenceOverSSLorHTTPS-Option2:UseacertificateissuedbyaCertificateAuthority(recommended))

Alternatively if you find yourself having trouble with the command line keytool, there is an open-source GUI tool that can help managing keystores. We have instructions for using it on our Jira document [Running Jira Applications over SSL or HTTPS](https://confluence.atlassian.com/adminjiraserver073/running-jira-applications-over-ssl-or-https-861253906.html). The article refers to Jira, but the instructions are the same for Confluence.

You can download it from the third-party website here:

* [Portecle on Sourceforge](http://portecle.sourceforge.net/)

Regards,

Shannon


Tags: confluence-server

server