-
I need to have some custom cert validation logic for both side of the connection. I am using I am using I did receive the certificate in QUIC_CONNECTION_EVENT_PEER_CERTIFICATE_RECEIVED for the client. However, I received NULL certification on the server side. Did I miss some flags to allow me to get the certificate on server side? I am testing this in a unit test so both client and server are in a same process sharing the same API table and registration. A same PKCS12 key is used for both server and client. Not sure if those matters. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The server needs to also use the |
Beta Was this translation helpful? Give feedback.
The server needs to also use the
QUIC_CREDENTIAL_FLAG_REQUIRE_CLIENT_AUTHENTICATION
flag to request the certificate from the client; otherwise, the client will not send the certificate, even if configured with one.See here: https://github.com/microsoft/msquic/blob/main/docs/api/QUIC_CREDENTIAL_CONFIG.md