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

Support for Mutual TLS #91

Open
ripavymsft opened this issue Mar 26, 2023 · 0 comments
Open

Support for Mutual TLS #91

ripavymsft opened this issue Mar 26, 2023 · 0 comments

Comments

@ripavymsft
Copy link

Context:

  • Client and server each initialize SchannelCred with schannel_cred::SchannelCred::builder().cert(certificate). Client and server each have their own cert.

Observed behavior:

  • the TlsStream on the client-side shows: client_tls_stream.peer_certificate() returns the server certificate, as expected
  • the TlsStream on the server-side has: server_tls_stream.peer_certificate() returns an Err value: Os { code: -2146893042, kind: Uncategorized, message: "No credentials are available in the security package"

Expected behavior:

  • The server_tls_stream.peer_certificate() should show the client certificate and the TLS connection is authenticated on both sides.
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

1 participant