Avatar
Please consider registering
guest
sp_LogInOut Log Insp_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 RSSsp_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: 1047
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: 1919
Currently Online:
Guest(s) 39
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 735
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1545
Posts: 6521
Newest Members:
Jorsiz, wilfredoforeman, ptdenriqueta, basilpullman, Richardmip, mood edibles, LouieWreve, daniellabdx, janessan21, sammiebeak359
Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1047, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0
Administrators: admin: 1