fips140ext is a custom MuleSoft 4.x extension that provides support for the fips-140 JCE ciphers available with the bouncycastle.org fips libraries.
To use this extension:
- Ensure you have Java JDK 1.8 and maven installed on your system
- Download this project from github or clone this repository with the following git command:
git clone https://github.com/mulesoft-consulting/fips140ext.git
- Build the Mule extension with the following maven command:
mvn clean install -DskipTests
- Add the following dependency snippet to the section of your Mule project's pom.xml file:
<dependency> <groupId>org.mulesoft.custom</groupId> <artifactId>fips140ext</artifactId> <version>1.0.0</version> <classifier>mule-plugin</classifier> </dependency>
- Copy the initFips.xml file from the root of this project to the /src/main/mule directory of your Mule project. This XML file initializes the fips-140 extension as a new cryptography provider in the JVM.
- You can verify that the libraries are being loaded properly by running your Mule project and examining your log file.
You should see log entries like these during the startup process:
fips140ext.internal.Fips140extConfiguration: Initializing FIPS-140 support... fips140ext.internal.Fips140extConfiguration: FIPS lib JCE sequence = x