Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence SSL

Kevin Decker February 14, 2018

I've acquired an SSL cert for our confluence instance (Windows server 2012) and I'm having some difficulty with installing it. I've gone through the documentation on here but we still run into an issue where the site is not secure. Any ideas? Here is what the cert looks like. confluence.PNG

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 14, 2018

Kevin,

What exactly is happening? Are all requests not being automatically routed to HTTPS?

Can you show us any messages you're seeing about the cert not being secure?

Regards,

Shannon

Kevin Decker February 14, 2018

Shannon, 

I went through the process of importing the cert & then I imported the root & intermediate certs as I saw in some of the documentation. After doing so I made the changes to the base url and the xml as documented and restarted the instance. When trying to navigate to the https link we get the below message. Screen Shot 2018-02-14 at 10.59.38 PM.png

However navigating to the http link does work but displays the messaging below

Screen Shot 2018-02-14 at 10.57.15 PM.png

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 15, 2018

Kevin,

Could you run through this troubleshooting using SSLPoke and let us know what comes back?

Can you also let me know if you get that error in more than just Chrome?

Lastly, if you click on that *Not Secure* error in your address bar, can you show me the information that is provided?

Kind Regards,

Shannon

Kevin Decker February 15, 2018

Shannon, 

Forgive me here but I'm not familiar with how to utilize SSLPoke and after looking at the documentation I was not able to get it to run successfully. I downloaded the file to the server and then ran the command as it stated on the steps but no luck. 

This occurs in any browser & I will get you a screenshot of what shows up on the address bar.

Thank you!

-Kevin

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 15, 2018

Kevin,

You can paste in reply to this with what the error message is that you're getting when you try to run SSLPoke? It will help me to understand why it's not running properly.

You can include the steps you were able to complete and let me know where it fails.

Regards,
Shannon

Kevin Decker February 15, 2018

Shannon, 

C:\Windows\System32>$JAVA_HOME/bin/java SSLPoke confluence.mcsonj.org 8090
'$JAVA_HOME' is not recognized as an internal or external command,
operable program or batch file.

I'm assuming that the file needs to be in a certain directory etc. on the server right?

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 15, 2018

Kevin,

JAVA_HOME refers to a a variable that you have set.

See Installing Java for Confluence:

Installing the JDK on Windows

Before you start, go to Control Panel > Programs and Features to check whether a JDK is already installed.

To install the JDK on Windows:

  1. Download the appropriate JDK 8 version.Check the Supported Platforms page to find out which JDK / JRE versions are supported for your version of Confluence.
  2. Run the Java installer. Make a note of the installation directory, as you'll need this later.
  3. Once the Java installation is complete, check that the JAVA_HOME  environment variable has been set correctly. Open a command prompt and type echo %JAVA_HOME% and hit Enter. 
    • If you see a path to your Java installation directory, the JAVA_Homeenvironment variable has been set correctly.
    • If nothing is displayed, or only %JAVA_HOME% is returned, you'll need to set the JAVA_HOME environment variable manually. See Setting the JAVA_HOME Variable in Windows for a step by step guide.  

Once you've done this, I recommend restarting the Windows machine. The next time Confluence starts up, if this is set correctly, then Confluence will use this Java installation.

 

Once that's complete, then start again from Running Confluence over SSL from the step where you were importing the certificate and go from there.

Let us know if you have any trouble!

Kind regards,

Shannon

Kevin Decker February 15, 2018

Thanks Shannon, so even through the certs are imported I would need to redo that step or no?

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 15, 2018

If you didn't already have JAVA_HOME set up before you did the import, then you will need to do it again because the location is going to be different. Also, some other things do occur in the background besides just the import of files, so this is important to repeat once you have set JAVA_HOME correctly.

Regards,

Shannon

Kevin Decker February 15, 2018

Shannon, 

I deleted the certs from the keystore and re-imported them, restarted the instance and the same result occurs, also have the same result with trying to run the sslpoke. Any thoughts?

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 15, 2018

Kevin,

So if you reimported the cert after you have run through the instructions I sent to install the latest JDK and set the JAVA_HOME path, can you send the results of the following:

echo %JAVA_HOME%

and

java -version

Thank you!

Shannon

Kevin Decker February 15, 2018

 

Shannon, 

I did so, here are the results of the two commands.

C:\Users\kdecker\Desktop>java -version
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)

C:\Users\kdecker\Desktop>echo %JAVA_HOME%
C:\Progra~1\Java\jre1.8.0_162

Thanks!

-Kevin

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events