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

Private key is no longer exportable from x509 certificatestore on Windows #644

Open
1 of 5 tasks
sveinfolkeson opened this issue Oct 16, 2024 · 1 comment
Open
1 of 5 tasks
Assignees
Labels
bug Something isn't working GDS

Comments

@sveinfolkeson
Copy link

Type of issue

  • Bug
  • Enhancement
  • Compliance
  • Question
  • Help wanted

Current Behavior

In earlier versions of OPC Foundation framework the private keys where exportable but now it is not possible to export them.
When I try to connect to an UA Server with a GDS certificate to X509 LocalComputer/UA Applications, generated by version 1.5.374.78, I get the error message :
10/16/2024 09:50:36.992 Trying to add certificate to cache with invalid private key.
10/16/2024 09:50:37.007 Trying to add certificate to cache with invalid private key.
10/16/2024 09:50:37.070 Unexpected error in '(null)'.
BadConfigurationError 'Cannot access certificate private key. Subject=CN=xxxx, DC=yy.yy.yy.yyy'

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- OS: Win 11
- Environment:
- Runtime: .NET Framework 4.8
- Nuget Version: 1.5.374.78
- Component: UA GDS Client
- Server:
- Client:

Anything else?

No response

@mregen
Copy link
Contributor

mregen commented Oct 18, 2024

Hi @sveinfolkeson, maybe it is related also to this issue: OPCFoundation/UA-.NETStandard#2765
Thanks for the report, we are investigating.

@mregen mregen added the bug Something isn't working label Oct 18, 2024
@mregen mregen self-assigned this Oct 18, 2024
@mregen mregen added the GDS label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GDS
Projects
None yet
Development

No branches or pull requests

2 participants