Skip to content

Issue with .p12 certificate on shared hosting #681

Open
@lzoumas

Description

@lzoumas

PushSharp 3.0

I am using PushSharp 3.0 to send Apple notifications via an MVC app. I generated a .p12 per the documentation and everything is working perfect locally. There are no issues. However, when I move this to shared hosting (Rackspace Cloud Sites), I get the following error...

System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: The credentials supplied to the package were not recognized at PushSharp.Apple.ApnsServiceConnection.d__2.MoveNext() --- End of inner exception stack trace --- ---> (Inner Exception #0) System.ComponentModel.Win32Exception (0x80004005): The credentials supplied to the package were not recognized at PushSharp.Apple.ApnsServiceConnection.d__2.MoveNext()<---

I know it's finding the .p12 file on the server and the password is obviously the same, so not sure what is happening.

Her is the relevant code that is throwing an error...

string path = ConfigurationManager.AppSettings["AppleP12CertificatePath"];

var config = new ApnsConfiguration(ApnsConfiguration.ApnsServerEnvironment.Production, path, "PASSWORD");
... Thanks,

Lee

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions