Confluence PR_END_OF_FILE_ERROR

Dan May 3, 2022

Hi,

 

I have installed Confluence on a Docker container with a Confluence server license. I have tried to renew the certificates with Let's Encrypt, but I get the following error when I am trying to access the Confluence page: PR_END_OF_FILE_ERROR.

I have generated the certificates using the following commands:

openssl pkcs12 -export -in cert.pem -inkey privkey.pem -out cert_and_key.p12 -name tomcat -CAfile chain.pem -caname root

keytool -importkeystore -destkeystore MyDSKeyStore.jks -srckeystore cert_and_key.p12 -srcstoretype PKCS12 -srcstorepass <password> -alias tomcat

keytool -import -trustcacerts -alias root -file chain.pem -keystore mykey.jks

Until 3 months this way was working fine.

Any idea of why it is not working?

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 3, 2022

Where did you get that error from?  I've seen it before when I've had problems using Firefox to connect to a https based service, but only coming from the browser.

The error from Firefox is not really very helpful, it's actually not reading a file that is chopped off before it ends, it's really reading a list of certificates and ciphers to find a pair that works with the service, not finding any, and then reaching the end of the list.  But it might not be just the list that Firefox is working through, there may be something else telling it that a valid cert/cipher pair is not valid.

Your setup commands look ok to me, I'd expect them to work, but I'd want to check that they are installing the right certificates in the right places in the right way.  Most importantly, which key store you have added them to - it needs to be the key store that the user account that is running Confluence uses, when running the Java virtual machine that Confluence runs in.

My usual mistake is to install certs in the system's install of Java, rather than the Java that Jira/Confluence/Bitbucket uses.

The other problems you might be having are:

  • Using a cipher Firefox is not familiar with (your commands do not do this, I've mentioned it for other people who might read this)
  • A proxy, VPN or load balancer between you and the server that might be making man-in-the-middle changes to the data stream
  • Anti virus software on either server or your machine can sometimes cause this message by breaking the connection from Firefox
  • Extensions or configurations can break Firefox's ciphers.

Could you try an "incognito" session in Firefox to rule most of those out?  Or better, try a different browser, ideally a recent version of a standards-compatible browser with clean install (no extensions or config tweaks - any of the big name browsers other than Internet Explorer)

Dan May 3, 2022

Hi Nic,

Thanks for the reply. 

Indeed, just Firefox throws this error, others were showing ERR_CONNECTION_CLOSED. 

The problem was that I was generating the JKS on machine that had a different JAVA version than on the machine that hosts Confluence. 

Issue is solved now. 

Thank you,

Dan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events