Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Certificate "CN=" not found in certificate store of store type 'Directory'

More
05 Jun 2024 12:45 #12846 by CFrayneIonic
Hello,
I'm having an issue with certificates where none of my generated certificates are being recognized? Below is the exceptions I get when I attempt to Write, Read and Subscribe.
Code:
Write Test************************* OpcLabs.EasyOpc.UA.UAEngineBase Error: 0 : UAClientSubscription failed at tick 358800531 and will retry in 3000 ms Exception thrown: 'OpcLabs.EasyOpc.UA.OperationModel.UAException' in OpcLabs.EasyOpcUA.dll Write Error*********: OPC UA service result - {Bad}. The operation failed. Client application certificate "CN= " not found in certificate store of store type 'Directory' with store path "C:\Users\Connor.Frayne\Documents\Test\QuickOPCUASubTest\bin\Debug\net8.0-windows/OPC Foundation/CertificateStores/MachineDefault". Read Test************************* Exception thrown: 'OpcLabs.EasyOpc.UA.OperationModel.UAException' in OpcLabs.EasyOpcUA.dll Read Error*********: OPC UA service result - {Bad}. The operation failed. Client application certificate "CN= " not found in certificate store of store type 'Directory' with store path "C:\Users\Connor.Frayne\Documents\Test\QuickOPCUASubTest\bin\Debug\net8.0-windows/OPC Foundation/CertificateStores/MachineDefault". Subscribe Exception************: OPC UA service result - {Bad}. The operation failed. Client application certificate "CN= " not found in certificate store of store type 'Directory' with store path "C:\Users\Connor.Frayne\Documents\Test\QuickOPCUASubTest\bin\Debug\net8.0-windows/OPC Foundation/CertificateStores/MachineDefault". OpcLabs.EasyOpc.UA.UAEngineBase Error: 0 : UAClientSubscription failed at tick 358805078 and will retry in 3000 ms Subscribe Exception************: OPC-UA client session is not available when connecting the client subscription. + The client method called (or event/callback invoked) was 'DataChangeNotification'. OpcLabs.EasyOpc.UA.UAEngineBase Error: 0 : UAClientSubscription failed at tick 358810093 and will retry in 3000 ms Subscribe Exception************: OPC-UA client session is not available when connecting the client subscription. + The client method called (or event/callback invoked) was 'DataChangeNotification'. OpcLabs.EasyOpc.UA.UAEngineBase Error: 0 : UAClientSubscription failed at tick 358815109 and will retry in 3000 ms Subscribe Exception************: OPC-UA client session is not available when connecting the client subscription. + The client method called (or event/callback invoked) was 'DataChangeNotification'. OpcLabs.EasyOpc.UA.UAEngineBase Error: 0 : The thread '[Thread Destroyed]' (26096) has exited with code 0 (0x0). UAClientSubscription failed at tick 358815312 and will retry in 3000 ms Subscribe Exception************: OPC UA service result - {Bad}. The operation failed. Client application certificate "CN= " not found in certificate store of store type 'Directory' with store path "C:\Users\Connor.Frayne\Documents\Test\QuickOPCUASubTest\bin\Debug\net8.0-windows/OPC Foundation/CertificateStores/MachineDefault".
What's confusing me is that I have multiple certificates of "CN= " in that directory. Image below.

I've put multiple of these in the Trusted Root Certification Authorities store and it still throws the same exception so I don't believe it's an issue of trust. I've looked on the server host side and the server doesn't even seem to receive the certs as I can't find them in the rejected nor trusted folder on the server. My only guess here is this CrytographicException in the details of the certs but I'm not sure how to fix that. Image below.

Here are the specs of my project.
Visual Studio Version: 17.10.0
.net Framework Installed: net8.0
Target Framework: net8.0
NuGet Package: OPCLabs.QuickOpc v5.80.192
OPC version: 2024.1
Evaluation license for QuickOPC Ultimate
The program is made on Visual Studio in a Windows Forms App
  • Please Log in or Create an account to join the conversation.

    Moderators: supportvaclav.zaloudek
    Time to create page: 0.135 seconds