Summary:
Due to the latest update from Java: Java 8 Update 351, Basware message is generating the following error message: "JCE cannot authenticate the provider BC".
Checklist:
- Java version should be Java Update 351 or more;
- Basware message installed 3.0.9;
- Error message: "JCE cannot authenticate the provider BC".
Resolution:
- Install an alternative Java VM by downloading it from one of the websites below. The current options are:
- DO NOT Download the already installed version. Always download the .msi setup and go through the installation process.
- For Basware Message users that are sending attachments, the recommended version is Open JDK 12 (Open J9)
- Please follow the install instructions from their website(s).
In the next step, we will configure Basware Message to use the alternative Java VM that we just downloaded and installed.
- Locate the Java launcher configuration file for Basware message, which is by default installed in:"C:\Program Files\Basware\Basware Message\Message.lap"
- Right click the file and open the file with Notepad
- Add or modify the line janel.java.home.path=<path to alternative JVM folder> (For example: janel.java.home.path=C:\Program Files\Amazon Corretto\jdk1.8.0_192)
- If Basware Message is running as a Windows service, you also need to change the configuration in MessageService.lap: To do this:
- Locate the MessageService.lap file which is by default installed in:"C:\Program Files\Basware\Basware Message\MessageService.lap"
- Add or modify the line janel.java.home.path=<path to alternative JVM folder> (For example: janel.java.home.path=C:\Program Files\Amazon Corretto\jdk1.8.0_192)
- Attention: Please note that the files from C:\Program Files have additional protections for editing. It might be easier to just copy the *.lap files to a different location, edit them there and copy them back to their location in C:\Program Files
Additional information:
Please note that for certain customers, although following the steps as described above, using Amazon Corretto (Java 8) has proven to not work.
In this case we are recommending to use Open JDK (Java 11).