Join us at Fortnox App Market today!

Discontinued support for Java 6 and earlier versions in our API

Today we have updated our web servers to increase the security level of SSL handshakes. This might cause integrations, built using older frameworks such as Java version 6 or earlier, to stop working properly. If you are experiencing problems after this update you need to update your old framework to a more recent version to be able to continue using our API.

As a temporary workaround to get integrations going again, one can try the following;

1. Download bountycastle to ${JAVA_HOME}/lib/ext/

2. Install jce 6 into ${JAVA_HOME}/lib/security (overwrite any files)

3. Set security.provider.2=org.bouncycastle.jce.provider.BouncyCastleProvider and move any other providers in ${JAVA_HOME}/lib/security/

4. All done!


Working code-example with this fix applied;


public void testThatJava6Works() throws Exception



public String getHTML(String urlToRead) {

URL url;

HttpsURLConnection conn;

BufferedReader rd;

String line;

String result = "";

try {

url = new URL(urlToRead);

conn = (HttpsURLConnection) url.openConnection();


rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));

while ((line = rd.readLine()) != null) {

result += line;



} catch (IOException e) {


} catch (Exception e) {



return result;