<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: bouncycastle bcprov-jdk15on-1.56</title><link>https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56</link><description>&lt;p&gt;Hello Ivy Team,&lt;/p&gt;
&lt;p&gt;I would like to sign PDF files using apache pdfbox.
Apache pdfbox requires the bcprov-jdk15on for encryption and signing.
When I try to run the signing example (&lt;a href="https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/)"&gt;https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/)&lt;/a&gt; i get a 
&lt;code&gt;
Exception in thread "main" java.lang.SecurityException: class "org.bouncycastle.asn1.ASN1Primitive"'s signer information does not match signer information of other classes in the same package
    at java.lang.ClassLoader.checkCerts(Unknown Source)
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I think this exception occurs because the designer has a bcprov-jdk15-1.45.jar already included, but this is not the jar 
 pdfbox expects. (bcprov-jdk15 and bcprov-jdk15on)&lt;/p&gt;
&lt;p&gt;When I try to delete this jar it is automatically recreated on startup.&lt;/p&gt;
&lt;p&gt;Could you please help me to solve this problem.&lt;/p&gt;
&lt;p&gt;I am using the ivy Designer 5.1.8&lt;/p&gt;
&lt;p&gt;Thank you and best regards 
Florian&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 16 Mar 2018 06:33:20 -0400</lastBuildDate><item><title>Answer by imoteb</title><link>https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56/3129</link><description>&lt;p&gt;Hi, can we upgrade the bouncy castle with a newer version, as we are using two different libraries from bouncy castle and the one actually collides with the one provided by Axon Ivy&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">imoteb</dc:creator><pubDate>Fri, 16 Mar 2018 06:33:20 -0400</pubDate><guid>https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56/3129</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56/2590</link><description>&lt;p&gt;You could try to repack the bouncycastle library, so that it will be available with another namespace. See &lt;a href="http://repackage.org/"&gt;http://repackage.org/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or the HSQL thread, where this solution was applied to the HSQL library: &lt;a href="http://answers.axonivy.com/questions/960/use-the-latest-hsqldb-within-my-project"&gt;http://answers.axonivy.com/questions/960/use-the-latest-hsqldb-within-my-project&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 24 Apr 2017 08:10:42 -0400</pubDate><guid>https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56/2590</guid></item></channel></rss>