Installation of Bouncy Castle for use in TomEE itself is done in two steps:

  1. Add the Bouncy Castle provider jar to the $JAVA_HOME/jre/lib/ext directory
  2. Create a Bouncy Castle provider entry in the $JAVA_HOME/jre/lib/security/ file

The entry to will look something like the following:


Replace N with the order of precedence you would like to give Bouncy Castle in comparison to the other providers in the file. Recommended would be the last entry in the list -- N being the higest number in the list. Warning that configuring Bouncy Castle as the first provider, security.provider.1, may cause JVM errors.