OPC UA client with connection problem #2337
Unanswered
BayBatBecko
asked this question in
Q&A
Replies: 1 comment
-
please check #2321 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
in C# I have written software to interface with a PLC controller. I tried replacing the library I already use and it works with the UA-.NETStandard library. I'm trying to refactor the code from the working library to UA-.NETStandard, but so far I'm having no success.
I have done the IP connection!
I found a way to put the name and password!
But when I try to connect to the PLC controller I get the following message:
Error: ApplicationCertificate must be specified
I tried, read, watched and what not, but with this library, I can't pass this step.
I tried to put the certificate on the server, that is the PLC controller:
applicationConfiguration.SecurityConfiguration = new SecurityConfiguration
{
TrustedPeerCertificates = new CertificateTrustList
{
StoreType = "Directory", // Тип на магазина (Directory, X509Store и други)
StorePath = @"C:\Users******\AppData\Roaming\unifiedautomation\uaexpert\PKI\trusted\certs",
It didn't work!
I tried, using the software I found on your site, to create my own certificate:
applicationConfiguration.SecurityConfiguration = new SecurityConfiguration
{
ApplicationCertificate = new CertificateIdentifier
{
StoreType = "Directory",
StorePath = @"D:",
SubjectName = "&&& [963D5BAE7D43B0EA45B168EAEBFEA1A2485FDB5B]"
}
};
The software I used from your site to create the certificate is called: UA Configuration Tool ;
Please help me to solve the problem, I don't have much time left and the connection is not working. Maybe more than a month I can't cope. I say again, I have ready developed and working software with another library, but I want to change it and I chose to switch to UA-.NETStandard library.
Beta Was this translation helpful? Give feedback.
All reactions