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
10 Jun 2024 15:28 #12863 by support
Many thanks!

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.

More
10 Jun 2024 12:27 #12862 by CFrayneIonic
I've sent a google drive link through email.
Thank you.
The following user(s) said Thank You: support

Please Log in or Create an account to join the conversation.

More
09 Jun 2024 07:56 #12861 by support
Hello,

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.

More
07 Jun 2024 10:14 - 07 Jun 2024 10:15 #12858 by support
Thank you. I was heading in this direction; I just wanted to collect enough information upfront.

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
Last edit: 07 Jun 2024 10:15 by support.

Please Log in or Create an account to join the conversation.

More
06 Jun 2024 16:48 #12855 by CFrayneIonic
Issue was resolved, The certs no longer generate empty as I've set the application Paramters.
Thank you!
The following user(s) said Thank You: support

Please Log in or Create an account to join the conversation.

More
06 Jun 2024 12:05 #12854 by CFrayneIonic
Yes, a Windows Forms app
Thank you

Please Log in or Create an account to join the conversation.

More
05 Jun 2024 20:14 #12852 by support
Hello.

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.

More
05 Jun 2024 19:50 #12851 by CFrayneIonic
1. I'm using VB.NET
2. No it's a class Library
3. No
4.
5. Debugging from VS
Thank you
Attachments:

Please Log in or Create an account to join the conversation.

More
05 Jun 2024 19:26 #12850 by support
Hello,

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.

More
05 Jun 2024 18:01 #12848 by CFrayneIonic
I just realized there might be confusion, the exception text is from a test project that I wrote that throws the exact same exceptions as the my main project, here's the exception text for the actual project
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.

Moderators: support
Time to create page: 0.063 seconds