8:40, EET
October 30, 2024
I’m learning OPC UA.
I executed the sample program provided by ProsysOPC-Sentrol_780B881: ProsysOPC.UaSampleClient.
Every time I use it to log into the machine’s OPC server, I get a Bad_CertificateUntrusted error message.
When I enter User/Password through the dialog box of the sample program and click ,
I can browse the nodes provided by the OPC server normally.
The OPC server manufacturer told me that the Client needs to trust the certificate at least once.
I tracked the program and found that the PassedChecks returned by UaClient.OnValidateCertificate lacked the status of cvcTrusted and cvcValidity.
How do I make the client trust the certificate?
15:54, EET
December 21, 2011
The client needs to trust the server certificate and the server needs to trust the client certificate.
If the client does not accept the certificate, it will prompt the user.
If cvcValidity is missing, it indicates that the certificate has probably been expired.
So, if you can find it from the rejected certificates in the disk, you can check the validity period of it. And if that turns out to be the case, you need to find out how to renew the server certificate.
16:29, EET
December 21, 2011
Further analysis reveals that the server certificate is missing the keyCertSign flag, although it is a self-signed certificate. This is required in the OPC UA specification:
https://reference.opcfoundation.org/Core/Part6/v105/docs/6.2.2
Most Users Ever Online: 1919
Currently Online:
18 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: 724
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1526
Posts: 6457
Newest Members:
forrestdilke5, ernestoportus31, martin123, rickie5305, shaylamaggard4, rickyjuarez140, jonathonmcintyre, fannielima, kristiewinkle8, rustModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1028, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1