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: 1032
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:
21 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: 730

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala

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

Administrators: admin: 1