Creating an Application Link fails with DER length more than 4 bytes

Still need help?

The Atlassian Community is here for you.

Ask the community


When setting up an application link between an Atlassian Server application and an Atlassian Cloud application you receive the following error in the application logs:

A system error has occurred.
java.lang.RuntimeException: DER length more than 4 bytes
Caused by: DER length more than 4 bytes
	at org.bouncycastle.jce.provider.JDKKeyFactory.engineGeneratePublic(Unknown Source)
	at org.bouncycastle.jce.provider.JDKKeyFactory$RSA.engineGeneratePublic(Unknown Source)
Referer URL:


Application links between Server and Cloud instances can only be performed if your Server application is running on either port 80 or port 443 (with valid SSL certificates). The instance also needs to be accessible publicly over the internet.

The Referer URL in the above error message may display that your Server instance is running on port 8080 or some other non standard port for web applications.


  • Make sure that your Atlassian Server application is running on either port 80 or port 443 (with valid SSL certificates) and can be accessed over the internet.
  • If you have any doubts on how to configure this please contact the Atlassian Server support team at

Last modified on Mar 30, 2016

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.