using APNS-Sharp in a .Net web service on a Rackspace cloud site.
在Rackspace云站点上的.Net Web服务中使用APNS-Sharp。
I'm getting hung up with no response at all when instantiating a new X509. Using apns-sharp it's this line:
在实例化一个新的X509时,我完全没有响应。使用apns-sharp就是这条线:
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");
I've also tried a different approach using this line, but same hanging response...
我也尝试过使用这条线的不同方法,但同样悬挂响应...
clientCertificate = new X509Certificate2(certificatePath, certificatePassword, X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.Exportable);
g.log("APNSPush clientCertificate success - NEVER GETS HERE");
Oddly there aren't any errors being caught so I'm not sure what's going on. I had suspected it was a key store access issue trying to get to the private key of the cert(p12) I'm using but I just don't know.
奇怪的是没有任何错误被捕获,所以我不确定发生了什么。我曾怀疑这是一个关键的商店访问问题试图获得我正在使用的证书的私钥(p12),但我只是不知道。
1 个解决方案
#1
0
turns out that Rackspace just informed me that this is due to limitations on access to the key store in the cloud site environment and I have to upgrade to a cloud server for this functionality
事实证明,Rackspace刚刚告诉我这是因为访问云站点环境中的密钥存储区的限制,我必须升级到云服务器才能实现此功能
#1
0
turns out that Rackspace just informed me that this is due to limitations on access to the key store in the cloud site environment and I have to upgrade to a cloud server for this functionality
事实证明,Rackspace刚刚告诉我这是因为访问云站点环境中的密钥存储区的限制,我必须升级到云服务器才能实现此功能