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.

BadCertificateUntrusted

More
13 Jun 2022 05:29 #10966 by CJiwan
Replied by CJiwan on topic BadCertificateUntrusted
Thanks for your answeer.
After moving the certificat from the rejected directory to "UA Application" that works fin.

I take time later to read the different doc proposed to improve my "process".

Best Regards
The following user(s) said Thank You: support

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

More
08 Jun 2022 08:59 #10946 by support
Replied by support on topic BadCertificateUntrusted
Hello,

please read:

- opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...0Client-Server%20Security.html
- opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...%20Instance%20Certificate.html
- opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...html#Certificate%20Stores.html
- opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...ry%20Certificate%20Stores.html

Most likely what you need to do is find the rejected server certificate in the "RejectedCertificates" directory, verify that it is the one you really want to trust, and move it to ""UA Applications" directory.

Best regards
The following user(s) said Thank You: CJiwan

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

More
08 Jun 2022 07:33 #10945 by CJiwan
Hi,

With the following code :
<?php
$Client = new COM("OpcLabs.EasyOpc.UA.EasyUAClient");
 
$EndpointDescriptor = new COM("OpcLabs.EasyOpc.UA.UAEndpointDescriptor");
$EndpointDescriptor->UrlString = "opc.tcp://CX-516F94:4840";
 
$ServerNodeId = new COM("OpcLabs.EasyOpc.UA.AddressSpace.UANodeId");
$ServerNodeId->StandardName = "Server";
 
try
{
    $NodeElements = $Client->BrowseObjects($EndpointDescriptor, $ServerNodeId->ExpandedText);
}
catch (com_exception $e)
{
    printf("*** Failure: %s\n", $e->getMessage());
    exit();
}
 
// Display results
foreach ($NodeElements as $NodeElement)
{
    printf("\n");
    printf("nodeElement.NodeId: %s\n", $NodeElement->NodeId);
    printf("nodeElement.NodeId.ExpandedText: %s\n", $NodeElement->NodeId->ExpandedText);
    printf("nodeElement.DisplayName: %s\n", $NodeElement->DisplayName);
}
 
?>

I obtaine the folowing error :
Description: OPC UA service result - {BadCertificateUntrusted}. The certificate is not trusted. --> {BadCertificateUntrusted}. Self Signed Certificate is not trusted. IssuerName: CN=TcOpcUaServer@CX-516F94, OU=Unit, O=Organization, L=LocationName, S=" ", C=DE, DC=CX-516F94.

I do not find/understand in the documentation how I have to manage the Certificate.

Thanks in advance for your help

Christian

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

Moderators: support
Time to create page: 0.046 seconds