Hello, I just spent a couple of hours debugging a very strange SSL issue.
To make a long story short:
Having BouncyCastle jars on the class path makes ActiveMQ add the BC SecurityProvider to the providers list. This causes the Google Firebase push service to not being able to make SSL connections. Crazy stuff!
--
After I got to that root issue, I tried to find why I had it on the class path in the first place. Turns out the dependency chain is:
So, the xhtmlrenderer needs BouncyCastle for some reason, and it apparently has a SecurityProvider class in its jar...
We of course use the pdfexport to generate PDF's.
So, I basically have one question: What would break if I don't include those jars?
I don't understand why an XHTMLRenderer needs bcmail and pcprov, haven't read up on the details though.
(As a sidetone, I think this problem would go away if the dependency had been to jdk15 and not jdk14, but I haven't tested.)
Cheers
To make a long story short:
Having BouncyCastle jars on the class path makes ActiveMQ add the BC SecurityProvider to the providers list. This causes the Google Firebase push service to not being able to make SSL connections. Crazy stuff!
--
After I got to that root issue, I tried to find why I had it on the class path in the first place. Turns out the dependency chain is:
Code:
[INFO] +- com.isomorphic.smartgwt.pro:isomorphic-content-export:jar:13.0-p20230603:compile [INFO] | \- com.isomorphic.smartgwt.pro:dependencygroup-pdfexport:pom:13.0-p20230603:compile [INFO] | +- org.xhtmlrenderer:core-renderer:jar:R8:compile [INFO] | | \- com.lowagie:itext:jar:2.0.8:compile >>> [INFO] | | +- bouncycastle:bcmail-jdk14:jar:138:compile >>> [INFO] | | \- bouncycastle:bcprov-jdk14:jar:138:compile
We of course use the pdfexport to generate PDF's.
So, I basically have one question: What would break if I don't include those jars?
I don't understand why an XHTMLRenderer needs bcmail and pcprov, haven't read up on the details though.
(As a sidetone, I think this problem would go away if the dependency had been to jdk15 and not jdk14, but I haven't tested.)
Cheers
Comment