03/14/2022
Hi,Â
I have a internal network and i don’t work with certificates.
The server Weintek is set without certificate.
When i create a session client, vb.net return this exception.
ServiceResultException: Certificate is not trusted.
SubjectName: CN=UaServer@cMT-D504, OU=Unit, O=Organization, L=LocationName, C=TW, DC=cMT-D504
IssuerName: CN=UaServer@cMT-D504, OU=Unit, O=Organization, L=LocationName, C=TW, DC=cMT-D504
How force this exception?
In the future we will implement the certificate but today i need to tests without them.
If anyone can help me, thanks
03/14/2022
Thanks for the answer,
but this is a problem, i dont’ t know how implementing this Api.
I use vb.net and error is in :
Session = Session.Create(AppOpcConf, Endpoint, False, AppOpcConf.ApplicationName, CUInt(AppOpcConf.ClientConfiguration.DefaultSessionTimeout), New UserIdentity(), Nothing).Result
The library are of the OPC foundation.
I have try to use AppOpcConf.SecurityConfiguration.AutoAcceptUntrustedCertificates = True, but not works.
I found SecurityPolicy object in opc-ua library, but im not be able to set correctly.
If you have some ideas… thanks
05/30/2017
I suggest you use the C# examples:
https://github.com/OPCFoundati…..enceClient
and
https://github.com/OPCFoundati…..les/Client
Note that there is no such thing as a secure internal network. Threats can come from anywhere.
In particular, you need certificates to protect passwords even if you turn connection security off.
So you need to learn how to manage security with your application even if you do your initial development without security.
1 Guest(s)