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
Certificate problems
February 15, 2019
16:13, EET
Avatar
Predixer
Member
Members
Forum Posts: 8
Member Since:
December 6, 2017
sp_UserOfflineSmall Offline

Hi,
I’m working with prosys-opc-ua-java-sdk-3.1.8-580-client. (Linux)
– I try to connect the OPC UA Server of a Bosch MTX-Machine.
– The security mode of the Uaclient is set to “SecurityMode.NONE”.

The Methode UaClient.connect() throws a ServiceException. Reason: The endpoint.getServerCertificate().getValue() returns an array with length 0.:
com.prosysopc.ua.ServiceException: Bad_CertificateInvalid (code=0x80120000, description=”2148663296, Could not parse certificate: java.io.IOException: Empty input”) ServiceResult=Bad_CertificateInvalid (0x80120000) “The certificate provided as a parameter is not valid.”
at com.prosysopc.ua.client.UaClient.connect(SourceFile:7590)
at com.develop.OpcUaBasicTests.connect(OpcUaBasicTests.java:95)
at com.develop.OpcUaBasicTests.testMonitoring(OpcUaBasicTests.java:46)
at com.develop.Main.main(Main.java:10)

The Prosys OPC UA Client v3.1.4-293 seems to have the same problem.

With prosys-opc-ua-java-sdk-2.3.2-781 and Prosys OPC UA Client prosys-opc-ua-client-2.3.3-170 everything worked fine.
Is there any solution for the problem?

February 15, 2019
17:23, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 982
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

We are aware of this problem. Next release will have a fix, we can send beta versions by mail earlier if needed.

Currently (for that release version) the only solution is to fix the server side to return null ByteStrings instead of empty if there is no cert.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 75

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 708

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1465

Posts: 6252

Newest Members:

christi10l, ahamad1, Flores Frederick, ellenmoss, harriettscherer, shanonhumphreys, KupimotoblokfuB, tamhollander5, paulinafcf, bridgette18l

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 982, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 319, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1