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
March 19, 2014
9:55, EET
Avatar
Nils-H
Member
Members
Forum Posts: 21
Member Since:
March 18, 2014
sp_UserOfflineSmall Offline

We’re experiencing problems when connecting to a server:

org.opcfoundation.ua.common.RuntimeServiceResultException: org.opcfoundation.ua.common.ServiceResultException: Bad_CertificateInvalid (code=0x80120000, description=”2148663296, Could not parse certificate: java.io.IOException: Empty input”)

We can connect with the same client to other servers. It’s just this server that is giving problems. Security is set to None,None. What could cause this problem?

Btw: It fails with the same error with the SampleConsoleClient.

March 19, 2014
12:13, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

The client is not providing any certificate with None security.

March 19, 2014
12:19, EET
Avatar
Nils-H
Member
Members
Forum Posts: 21
Member Since:
March 18, 2014
sp_UserOfflineSmall Offline

Both client and server specifies “None” security, and it works with our other servers. Can a server require certificate even when using None security? As far as I can see from the SampleConsoleClient logs, it reads the certificates generated in the PKI folder in the samples folder.

March 19, 2014
12:53, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes, it looks like the server is expecting a certificate and fails when it does not get one.

The specification has not been very clear on this and has been revised in 1.02 to be more clear when certificates should be sent and expected.

March 24, 2014
7:14, EET
Avatar
Nils-H
Member
Members
Forum Posts: 21
Member Since:
March 18, 2014
sp_UserOfflineSmall Offline

It seems like the problem is that the server is returning an empty certificate string, rather than null. I’m not familiar with the specification in detail, but it looks to me like something that could/should by handled by the SDK?

March 24, 2014
12:57, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

OK, I interpreted that the error comes from the server. Do you have a bit more extensive logging from that part, which we could examine more and enable a fix in the stack or SDK. You can also contact by email to uajava-support at prosysopc.com.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
67 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: 738

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6451

Newest Members:

jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger

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

Administrators: admin: 1