I used the maven assembly plugin to package my program in a jar-with-dependencies (a non execuatable jar that includes my program plus all classes extracted from the jars it depends on). When I make a call to Bouncy Castle to encrypt file it throws and exception for which the root cause is this:
java.util.jar.JarException: file:Foo.jar has unsigned entries
Will signing my jar solve the problems? Is there any way to make Bouncy Castle skip the check for unsigned classes? If I do need to sign it can I get maven to do it automatically when I build the jar?