What FQDN for a local Confluence Server should be in a self-sign cert for HTTPS?

Tony Marques June 30, 2020

I have a local Confluence Sever installed. Works fine when accessed using HTTP://localhost:8090.

 

I've followed the guidance for getting HTTPS to work- but it will not work for me!

Seems that the self-signed cert I create needs to have the FQDN specified in the 'CN' part of the KeyPair.

My hostname for my server is "HOMELAPTOP"

What FQDN should I enter in the Cert?

Any help will be much appreciated.

Thanks

 

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 30, 2020

You should use the qualified name that you are going to be presenting Confluence on.

If, for example, you want to present it on https://mydomain.net/confluence, the FQDN will be mydomain.net.  Remember that this must be resolvable by DNS as well.

Tony Marques June 30, 2020

Thanks Nic

Users will be accessing confluence on an explicit iP address of the server on my LAN.

It's the FQDN that seems to be the issue?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 30, 2020

That would make the FQDN simply the ip address

Tony Marques June 30, 2020

Yep, that's what I thought also :-)

 

I'm at my whit's end to get Confluence to do something really mundane such as work over HTTPS.

I've just now tried the laptop hostname in the URL base as:

HTTPS://HOMELAPTOP:8443

Still won't work.

I'm now looking at the Cert itself but struggling to see any issue with it- I set the 'CN' entry as HOMELAPTOP in a new .keystore. makes no difference :-(

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 30, 2020

If you use a name in a certificate, your network must be able to resolve the name to an IP address, meaning you'll need DNS entries to make it work.

Tony Marques June 30, 2020

HOMELAPTOP resolves to an IP address on my LAN - all other LAN endpoints can access http://homelaptop:8090/ but not https://homelaptop:8443

I even put an entry in the hosts file to resolve HOMELAPTOP to an IP address bit did not make a difference.

 

As a new user trying out confluence - this is disappointing :-)

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 30, 2020

This is not actually a Confluence problem.  Confluence itself doesn't do SSL at all, other than accepting "https" in its base url.

It's a function it hands off to the application server that is running it (nowadays, Tomcat is the only option supported), and Tomcat does support internet standards for SSL.

I think you're going to need to do more debugging of the certificates, not Confluence.  The main reason I'm stuck here is that when I follow the docs for self-certification, they do work for me.  Worse, they work when I take the more complicated routes like running it behind a proxy, and then I usually take another step and get a global certificate (i.e. not self-signed) and hook it up to automated renewals and monitoring.

Like Tony Marques likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.5.2
TAGS
AUG Leaders

Atlassian Community Events