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.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Connections, Reconnections, Certificates
- Certificate "CN=" not found in certificate store of store type 'Directory'
Certificate "CN=" not found in certificate store of store type 'Directory'
I was able to reproduce the issue with your project. For whatever reason, the FileVersionInfo.FileDescription returns a string with a single space character in it, and when we attempted to use it as the certificate common name, it did not go well.
In QuickOPC 2024.2 this will be fixed (will not require you to set the ApplicationName in the code).
Best regards
Please Log in or Create an account to join the conversation.
- CFrayneIonic
- Topic Author
- Offline
- Elite Member
- Posts: 23
- Thank you received: 3
Thank you.
Please Log in or Create an account to join the conversation.
interestingly enough, I could not reproduce the issue, in order to do the internal fix I wanted. In fact it looks like that the CN is perhaps not empty, but it might consist of some invisible special characters - but that is just a wild guess. Can you perhaps send me the project that shows the problem, or one of the improperly generated certificates, or both? If deemed confidential, you can email to support09 (at) opclabs.com.
Thank you, and best regards
Please Log in or Create an account to join the conversation.
I still consider this a problem in QuickOPC, and we will look into it and fix into the next version. The expected behavior is that although you can always configure the subject name, you should not be required to do so, and QuickOPC should automatically come up with some non-empty, and generally valid name.
Thank you for reporting this.
Best regards
Please Log in or Create an account to join the conversation.
- CFrayneIonic
- Topic Author
- Offline
- Elite Member
- Posts: 23
- Thank you received: 3
Thank you!
Please Log in or Create an account to join the conversation.
- CFrayneIonic
- Topic Author
- Offline
- Elite Member
- Posts: 23
- Thank you received: 3
Thank you
Please Log in or Create an account to join the conversation.
Thank you for the additional information. If your project is a Class Library, it cannot be run standalone. So, my question actually is, what type of project is the the actual top-level application that is experiencing the problem? Is it Windows Forms application, or something else?
Best regards
Please Log in or Create an account to join the conversation.
- CFrayneIonic
- Topic Author
- Offline
- Elite Member
- Posts: 23
- Thank you received: 3
Attachments:
Please Log in or Create an account to join the conversation.
thank you for the detailed report. I can *guess* that the problem is coming from the fact the the certificate common name (CN) is actually empty. The fact that this causes some subsequent issues isn't surprising that much; we need to determine why the common name came out empty, and how to rectify that, first.
Can you please answer some additional questions:
1. Which programming language are you using? C#? VB.NET?
2. Is the main ("true") project also Windows Forms app?
3. Are you setting any parameters inside QuickOPC ApplicationManifest? (opclabs.doc-that.com/files/onlinedocs/OPCLabs-OpcStudio/Late...%20Application%20Manifest.html )
4. What are the settings of the assembly-level attributes (in C#, usually in Properties/AssemblyInfo.cs ), if any - such as [AssemblyTitle] - can you post them here?
5. Are you starting your application normally (e.g. from VS IDE, or clicking on the EXE in the File Explorer), or in some special way?
Thank you
Please Log in or Create an account to join the conversation.
- CFrayneIonic
- Topic Author
- Offline
- Elite Member
- Posts: 23
- Thank you received: 3
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\SafeBoxHMI\SafeBox\bin\Debug\net8.0-windows/OPC Foundation/CertificateStores/MachineDefault".
OpcLabs.EasyOpc.UA.UAEngineBase Error: 0 : UAClientSubscription failed at tick 443933218 and will retry in 3000 ms
OPC-UA client session is not available when connecting the client subscription.
+ The client method called (or event/callback invoked) was 'DataChangeNotification'.
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Connections, Reconnections, Certificates
- Certificate "CN=" not found in certificate store of store type 'Directory'