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: 1026
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:
19 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: 736

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6450

Newest Members:

kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism

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

Administrators: admin: 1