Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use UA Sample Client to connect siemens pcu 4.07 ua server with account and password? #178

Open
acer1204 opened this issue Sep 7, 2018 · 1 comment

Comments

@acer1204
Copy link

acer1204 commented Sep 7, 2018

I used UA sample Client to connect siemens pcu 4.05 ua server. is working(Anonymous Mode).

but when i use UA sample Client to siemens pcu 4.07 ua server. it show bad certificate.(4.07 have to input account and password)

I have entered the correct account and password. but it show bad certificate.

when i use third-party software "softing opc ua client", and entered the correct account and password. it working.

how can i use UA sample Client to connect siemens pcu 4.07 ua server?

@fchaxel
Copy link

fchaxel commented Oct 17, 2018

UA.NET Legacy is not the actual C# stack (dead), have a look to UA.NET Standard ... that's a reason why you did not get any response for a so long time.

For Siemens OPC, a lot of products are using SHA1 as a certificate hach algorithm. The UA.NET Standard do not accept this kind of certificate by default. Don't know with the old UA.NET Legacy.

If it's the same, on the code have a look to the SecurityConfiguration property of the ApplicationConfiguration object then put the RejectSHA1SignedCertificates property to false.

Something like this
config.SecurityConfiguration.RejectSHA1SignedCertificates = false; // for Siemens PLC

or have a look to Opc.Ua.SampleClient.Config.xml if used by your code to add it inside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants