-
Notifications
You must be signed in to change notification settings - Fork 571
Fix X509CertificateEndpointIdentity deserialization bug causing CryptographicException #5850
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: mconnew <[email protected]>
@copilot, the tests depend on X509CertificateEndpointIdentity.WriteContentsTo having a correct implementation. Modify the tests to not depend on the writing implementation being correct. |
Co-authored-by: mconnew <[email protected]>
Modified the tests to manually construct the XML instead of using WriteContentsTo. Both tests now create the XML strings directly with the expected structure and base64-encoded certificate data. Commit: e6b6329 |
@copilot, an xunit code analyzer generated the following build error: Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013) |
…al for collection size check Co-authored-by: mconnew <[email protected]>
Fixed by replacing |
@copilot, the test is failing on MacOS with the following error:
|
Co-authored-by: mconnew <[email protected]>
... Fixed by exporting and reimporting the certificates without private keys. The tests only need the certificate data for deserialization testing, not the private keys, so this avoids MacOS keychain issues. Commit: 28e9559 |
@copilot, building the tests is failing due to the following code analyzer build error:
|
…lete constructor Co-authored-by: mconnew <[email protected]>
Fixed by replacing |
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.