Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CertificateIdentifier:Find(bool) returns no private key after Version 1.4.367.0 #2608

Closed
1 of 5 tasks
sveinfolkeson opened this issue May 2, 2024 · 2 comments
Closed
1 of 5 tasks

Comments

@sveinfolkeson
Copy link

Type of issue

  • Bug
  • Enhancement
  • Compliance
  • Question
  • Help wanted

Current Behavior

When I call cid.Find(true) from GlobalDiscoveryClient.cs (line 332) no certificate is returned.
This works just fine in 1.4.367.0 but not in 1.4.368 or newer.

I have noticed that there has been done some changes in the CertificateIdentifier class from ver 367 to 368 and suspect that there must be some bug in the new code.

Expected Behavior

No response

Steps To Reproduce

  1. Start GlobalDiscoveryClient 1.4.368
  2. Create certificate
  3. Click on "Trust List" and then "Certificate"
  4. Expected result should now be the content of the Certificate but there is nothing.

If you do the same with ver 1.4.367 you will see the generated cert.

Environment

- OS: Windows 11
- Environment: Visual Studio 2022
- Runtime: .NET 4.6.2
- Nuget Version: 1.4.368
- Component: GlobalDiscoveryClient->CertificateIdentifier-Find
- Server: GlobalDiscoveryServer
- Client: GlobalDiscoveryClient

Anything else?

No response

@romanett
Copy link
Contributor

romanett commented May 2, 2024

this recent PR allows you to specify the certificate Identifier to allow private keys:
#2558

You would however need to change this in the client code (library version + supply parameter "noPrivateKeys" = false), please file a PR here if you implement this change:
https://github.com/OPCFoundation/UA-.NETStandard-Samples

@romanett romanett closed this as completed May 2, 2024
@sveinfolkeson
Copy link
Author

sveinfolkeson commented May 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants