PushSharp-提供给程序包的凭据无法识别 [英] PushSharp - The credentials supplied to the package were not recognized

查看:100
本文介绍了PushSharp-提供给程序包的凭据无法识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很长一段时间以来,我一直在寻找答案.有无数的讨论,但似乎没有一个对我有所帮助(我已经尝试了所有阅读的内容).

I been searching for an answer for this for a long time now. There are a zillion discussions but none seems to have helped me (I have tried everything I have read).

我有一个ASP.net网站,可以发送苹果推送通知.我使用push sharp创建了一个Console应用程序-在我的服务器上运行它,push通知被成功发送/接收.我在本地开发系统上运行控制台,它也可以运行.我从本地系统上的IIS Express运行我的网站"-推送通知也成功.但是在我的服务器上的IIS中运行时,我得到了可怕的无法识别提供给程序包的凭据"的信息.谢谢

I have an ASP.net website that send apple push notifications. I created a Console app using push sharp - run it on my server, the push notifications get sent/received successfully. I run the console on my local dev system, it also works. I run my 'website' from IIS Express on my local system - the push notifications are also successful. But running in IIS on my server, I am getting the dreaded 'The credentials supplied to the package were not recognized' - any help at this point would be fantastic. Thanks

推荐答案

以前,每次遇到此问题时,都必须将证书从本地计算机证书存储中删除,然后重新导入.然后,一切似乎都很高兴.如果只是重新导入即可解决此问题,那么我看不到这可能是全局权限问题还是无效的证书.

Previously, every time I have run into this issue, I have had to delete the cert out of my local machine cert store and re-import it. Then it all seems happy. I can't see how it could be a global permissions issue or invalid cert if simply re-importing it fixes the issue.

我最终如何使用 winhttpcertcfg 工具,以向使用证书的特定用户授予权限.

How I finally fixed it was using the winhttpcertcfg tool from the Windows Resource Kit to grant permission to the specific user that was using the cert.

语法为:

"C:\Program Files (x86)\Windows Resource Kits\Tools\winhttpcertcfg" -i cert.p12 -c LOCAL_MACHINE\My -a UserWhoUsesTheCert -p passwordforp12

这篇关于PushSharp-提供给程序包的凭据无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆