Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# X509Certificate2在使用iPhone Apple推送通知提供程序(apns sharp)时出现问题_C#_Asp.net_X509certificate2_Apns Sharp - Fatal编程技术网

C# X509Certificate2在使用iPhone Apple推送通知提供程序(apns sharp)时出现问题

C# X509Certificate2在使用iPhone Apple推送通知提供程序(apns sharp)时出现问题,c#,asp.net,x509certificate2,apns-sharp,C#,Asp.net,X509certificate2,Apns Sharp,在Rackspace云站点上的.Net web服务中使用APNS Sharp 在实例化一个新的X509时,我被挂断了,根本没有响应。使用apns夏普,这条线: public ApplePushChannelSettings(bool production, byte[] certificateData, string certificateFilePwd) : this(production, new X509Certificate2(certificateData, certificateFi

在Rackspace云站点上的.Net web服务中使用APNS Sharp

在实例化一个新的X509时,我被挂断了,根本没有响应。使用apns夏普,这条线:

public ApplePushChannelSettings(bool production, byte[] certificateData, string certificateFilePwd)
: this(production, new X509Certificate2(certificateData, certificateFilePwd,
X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.Exportable)) { }
g.log("APNSPush clientCertificate success - NEVER GETS HERE");
我也用这句话尝试了一种不同的方法,但同样的悬而未决的反应

clientCertificate = new X509Certificate2(certificatePath, certificatePassword, X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.Exportable);
g.log("APNSPush clientCertificate success - NEVER GETS HERE");

奇怪的是,没有发现任何错误,所以我不确定发生了什么。我怀疑试图获取证书的私钥时出现密钥存储访问问题(第12页)我正在使用,但我只是不知道。

原来Rackspace刚刚通知我,这是由于在云站点环境中访问密钥存储受到限制,我必须升级到云服务器以实现此功能。

原来Rackspace刚刚通知我,这是由于在云站点环境中访问密钥存储受到限制所致云站点环境和我必须升级到云服务器才能实现此功能。