I am receiving "The credentials supplied to the package were not recognized" message when attempting to send a push notification from a site in IIS.
I have a console application that runs exactly the same code on the server which runs fine, it is just when it is from IIS.
I have tried the solution here: PushSharp - The credentials supplied to the package were not recognized
I tried:
"C:\Program Files (x86)\Windows Resource Kits\Tools\winhttpcertcfg" -i certificate.p12 -c LOCAL_MACHINE\My -a "NetworkService" -p <Password>
This is the account that IIS runs from. I have also tried for IIS_IUSRS, USERS but I still get the credentials error
I have also checked that I'm only exporting the Private Key and not the certificate, also I have tried both ways
Is there anything else I can try? It seems odd that it is only IIS that cannot send the push notification
I had the same problem in my .NET Core webservice deployed to AWS Elastic Beanstalk. I will outline everything I tried and how I ultimately fixed it.
Hope this helps.