Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Problem with generating certificate on SUN compared to Windows
October 22, 2015
9:08, EEST
Avatar
hal3000vee
New Member
Members
Forum Posts: 2
Member Since:
October 22, 2015
sp_UserOfflineSmall Offline

Hi.

I have a problem with a java UA-client when it is trying to generate a certificate on a sun platform. The application runs in weblogic and if I manually adds the certificto the pki folder the client starts fine. I can not see the same problem when i run the same client on windows.

The client uses: bcpkix-jdk15on-152.jar and bcprov-jdk15on-152.jar and I guess that this is what causes the problem. Perhaps a jar signing ? The UA stack is Prosys-OPC-UA-Java-SDK-Client-Binary-2.2.0-552

Best regards
.

Exception in thread “Thread-14” java.lang.VerifyError: class org.bouncycastle.asn1.x500.X500Name overrides final method equals.(Ljava/lang/Object;)Z
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:385)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:344)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:302)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:180)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
at org.opcfoundation.ua.transport.security.BcCertificateProvider.generateCertificate(Unknown Source)
at org.opcfoundation.ua.utils.CertificateUtils.generateCertificate(Unknown Source)
at org.opcfoundation.ua.utils.CertificateUtils.generateCertificate(Unknown Source)
at org.opcfoundation.ua.utils.CertificateUtils.createApplicationInstanceCertificate(Unknown Source)
at com.prosysopc.ua.ApplicationIdentity.createKeyPair(Unknown Source)
at com.prosysopc.ua.ApplicationIdentity.loadOrCreateKeyPair(Unknown Source)
at com.prosysopc.ua.ApplicationIdentity.loadOrCreateCertificate(Unknown Source)
at com.prosysopc.ua.ApplicationIdentity.loadOrCreateCertificate(Unknown Source)
at com.prosysopc.ua.ApplicationIdentity.loadOrCreateCertificate(Unknown Source)
at opc.client.Worker.connectToOpcServer(Worker.java:110)
at opc.client.Watchdog.startOpcClient(Watchdog.java:136)
at opc.client.Watchdog.run(Watchdog.java:72)

October 23, 2015
7:51, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

Have you embedded the bouncy castle jars together with the application jar (i.e. “uber/fat jar”)? If so then that is the reason, as the bouncy castle jars are signed and cannot be embedded like that.

– Bjarne

October 23, 2015
8:59, EEST
Avatar
hal3000vee
New Member
Members
Forum Posts: 2
Member Since:
October 22, 2015
sp_UserOfflineSmall Offline

Hi.

No. The bouncy castle jar’s is not embedded with the application jar.

TorH

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 731

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

inilarythikibia, rickykennion, PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1