Skip to content

further tests for ipv6 (os supported),uds,tls - #95

Merged
sshanks-kx merged 2 commits into
KxSystems:mainfrom
sshanks-kx:issues
Sep 17, 2026
Merged

sshanks-kx merged 2 commits into
KxSystems:mainfrom
sshanks-kx:issues

Conversation

@sshanks-kx

Copy link
Copy Markdown
Collaborator

No description provided.

@sshanks-kx sshanks-kx self-assigned this Sep 17, 2026
The failures are specific to Windows/.NET Core 3.1 TLS behaviour:

Schannel could not access the private key of the in-memory self-signed certificate:
No credentials are available in the security package

The helper now exports the generated certificate to PFX and re-imports it using:

X509KeyStorageFlags.Exportable |
X509KeyStorageFlags.MachineKeySet |
X509KeyStorageFlags.PersistKeySet

This gives Schannel an accessible persisted private key.

Certificate rejection is reported differently across platforms:
Some platforms throw AuthenticationException.
Windows/.NET Core 3.1 can throw IOException because the server closes the TLS transport.

The rejection test now accepts either exception while still failing for unrelated exceptions.
@sshanks-kx
sshanks-kx merged commit 19c0af5 into KxSystems:main Sep 17, 2026
1 check passed
@sshanks-kx
sshanks-kx deleted the issues branch September 17, 2026 09:55
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

Successfully merging this pull request may close these issues.

1 participant