Please consider registering

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, EEST
Forum Posts: 3
Member Since:
December 6, 2017
sp_UserOfflineSmall Offline

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, EEST
Bjarne Boström
Forum Posts: 347
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline


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: 78

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 89

pramanj: 86

ibrahim: 68

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 36

Rainer Versteeg: 32

peterrob45: 25

Member Stats:

Guest Posters: 0

Members: 831

Moderators: 11

Admins: 1

Forum Stats:

Groups: 3

Forums: 14

Topics: 850

Posts: 3588

Newest Members:

stielerit, FonsCarver, THX, Automate, gamebaisunwin, reilev, brigettei47, olaloos025, leslieangles9, tomprodehl

Moderators: Jouni Aro: 824, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 347, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 14

Administrators: admin: 0