Skip to content

Commit 38388f1

Browse files
authored
fix RegisterWithDiscoveryServer method not using a certificate for the secure channel (#3005)
1 parent ca18c2d commit 38388f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Opc.Ua.Server/Server/StandardServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2394,7 +2394,7 @@ public bool RegisterWithDiscoveryServer()
23942394
requestHeader.Timestamp = DateTime.UtcNow;
23952395

23962396
// create the client.
2397-
var instanceCertificate = InstanceCertificateTypesProvider.GetInstanceCertificate(null);
2397+
var instanceCertificate = InstanceCertificateTypesProvider.GetInstanceCertificate(endpoint.Description?.SecurityPolicyUri ?? SecurityPolicies.None);
23982398
client = RegistrationClient.Create(
23992399
configuration,
24002400
endpoint.Description,

0 commit comments

Comments
 (0)