Hello Ivy Team,

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 (https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/) i get a 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)

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)

When I try to delete this jar it is automatically recreated on startup.

Could you please help me to solve this problem.

I am using the ivy Designer 5.1.8

Thank you and best regards Florian

asked 21.04.2017 at 06:11

Florian%20Heinrich's gravatar image

Florian Hein...
(suspended)
accept rate: 0%

edited 21.04.2017 at 08:51

have you tried to put the JAR to jre/lib/ext ?

(24.04.2017 at 03:34) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

You could try to repack the bouncycastle library, so that it will be available with another namespace. See http://repackage.org/

Or the HSQL thread, where this solution was applied to the HSQL library: http://answers.axonivy.com/questions/960/use-the-latest-hsqldb-within-my-project

link

answered 24.04.2017 at 08:10

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

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

link

answered 16.03.2018 at 06:33

imoteb's gravatar image

imoteb
(suspended)
accept rate: 0%

Until 7.0 the library is used to provide Webservice.process API via SOAP.

  • If you don't provide webservices, you can replace it.
  • If you use ivy to provide webservices, you can test whether authentication mechanism is still working with another bcprov library...

With 7.1 the library is no longer shipped with the product and therefore no problems exists.

What version are you using?

(16.03.2018 at 09:46) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

I am using 6.1

(16.03.2018 at 09:48) imoteb imoteb's gravatar image

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: https://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.processmodeling.html#ivy-processmodels-elements-tabs-wsprocess

(16.03.2018 at 10:29) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×52

Asked: 21.04.2017 at 06:11

Seen: 237,216 times

Last updated: 16.03.2018 at 10:29