在网上看了很多帖子,搜索到都是用的外国一个开源的代码
https://github.com/Redth/APNS-Sharp 这里。
都是下载之后只需要改一些数据就能用了,我修改了之后,运行到
NotificationService service = new NotificationService(sandbox, p12Filename, p12FilePassword, 1);
这里,就报错,报参数错误。单步调试,最终错误在            certificate = new X509Certificate2(p12FileBytes, p12FilePassword, X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.Exportable);
这里,  参数错误 。请问有木有人遇到过这个问题啊,求指点迷津