Skip to content
Discussion options

You must be logged in to vote

The exception means the client did not find an application certificate with a private key for the endpoint security policy, not that the server failed to trust the DER/PEM you sent them.

For Aes256_Sha256_RsaPss, the stack maps the security policy to RsaSha256ApplicationCertificateType and then calls FindApplicationCertificateAsync(..., privateKey: true). If the certificate in your SecurityConfiguration does not have a private key, or the store lookup cannot find the matching cert+private key, Session.LoadCertificateAsync throws the exact message you are seeing.

Things I would check first:

logger.LogInformation("HasPrivateKey={HasPrivateKey}", certificate.HasPrivateKey);

and make sure the…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by zach-interstates
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants