-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[.NET 9.0 Regression] "Credentials supplied to the package were not recognized" when using certificates with wcf client #110067
Comments
Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones |
this looks like dup of #109050. It seems like the something changed in certificate loading. |
I just solved my problem by removed the flag when i imported the certificate (i honestly don't know why i put these flags on the original code, but removing them seem make the job => code working in .net 8.0
=> code working in .net 9.0
but there is definitivly change in .net9 also in ServicePointManager This is my final code which works in .net9, without warning and with tlsoption and callback
|
For a while the |
Yeah i don't know exactly neither but there is definitively a strange behavior with the wcf client. anyway my problem is solved, and i get rid of call at the service point manager so everything is good on my side,, thanks for your help ! |
Description
Hello guys, i have a piece of code in my app which call a soap service using wcf client and certificate authentification.
This code work fine in .net8.0, but after upgrading to .net9.0 it stopped working and finish with this exception "Credentials supplied to the package were not recognized".
I was wondering which change made in the framework can explain that.
this is the part where i configure the service
Interesting things : since .net 9.0, all call to ServicePointManager are flag obsolete. But i don't know it the error can come frome here. The "new X509Certificate2" is also obsolete but if i change for "X509CertificateLoader.LoadPkcs12" i still have same error.
This error is really annoying for me, it would be really a pain to come back in .net 8.0 as i already upgraded many client.
Unfortunately i can't give a repro project as there is very sensitives informations, especially the certificate used for connexion (but if its really necessary, i will check that).
Do you have some tips on how i can debug that or if you know which changes can explain that ?
This issue is high priority for me.
thanks !
Reproduction Steps
calling wcf service with client certificate authentication
Expected behavior
Have the same behavior wetween .net8.0 and .net9.0
Actual behavior
the code throw exception in .net9.0
Regression?
yes, was working in .net8.0
Known Workarounds
no workaround for now
Configuration
.net9, win-x64
Other information
No response
The text was updated successfully, but these errors were encountered: