<?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 10:29:45 -0400</lastBuildDate><item><title>Comment by Reguel Wermelinger on imoteb's answer</title><link>https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56#3132</link><description>&lt;p&gt;I'm just guessing but I think you can replace the bouncycastle library if you use no webservice processes at all or if you have only such with HTTPBasic or Container authentication: &lt;a href="https://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.processmodeling.html#ivy-processmodels-elements-tabs-wsprocess"&gt;https://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.processmodeling.html#ivy-processmodels-elements-tabs-wsprocess&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 16 Mar 2018 10:29:45 -0400</pubDate><guid>https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56#3132</guid></item><item><title>Comment by imoteb on imoteb's answer</title><link>https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56#3131</link><description>&lt;p&gt;I am using 6.1&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">imoteb</dc:creator><pubDate>Fri, 16 Mar 2018 09:48:03 -0400</pubDate><guid>https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56#3131</guid></item><item><title>Comment by Reguel Wermelinger on imoteb's answer</title><link>https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56#3130</link><description>&lt;p&gt;Until 7.0 the library is used to provide Webservice.process API via SOAP. &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you don't provide webservices, you can replace it.&lt;/li&gt;
&lt;li&gt;If you use ivy to provide webservices, you can test whether authentication mechanism is still working with another bcprov library...&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With 7.1 the library is no longer shipped with the product and therefore no problems exists.&lt;/p&gt;
&lt;p&gt;What version are you using?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 16 Mar 2018 09:46:53 -0400</pubDate><guid>https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56#3130</guid></item><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><item><title>Comment by Reguel Wermelinger on Florian Heinrich's question</title><link>https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56#2588</link><description>&lt;p&gt;have you tried to put the JAR to &lt;code&gt;jre/lib/ext&lt;/code&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 03:34:58 -0400</pubDate><guid>https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56#2588</guid></item></channel></rss>