Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File not found for the p12 #15

Open
Elrinth opened this issue Jul 19, 2013 · 2 comments
Open

File not found for the p12 #15

Elrinth opened this issue Jul 19, 2013 · 2 comments

Comments

@Elrinth
Copy link

Elrinth commented Jul 19, 2013

Please modify the code in moonapns so it works in IIS server aswell and not only in visual studio IIS...

Simply edit the PushNotification constructor where it creates the X509Certificate2
Add the following flags in the end for the X509Certificate2 constructor:
X509KeyStorageFlags.MachineKeySet |
X509KeyStorageFlags.PersistKeySet |
X509KeyStorageFlags.Exportable

Then it will work in production aswell...

@vardars
Copy link

vardars commented Aug 4, 2013

If you mean this, I already committed below as a bugfix. But still not approved.
vardars@e4365c6

@Elrinth
Copy link
Author

Elrinth commented Aug 4, 2013

I'm sure you have fixed it already, but it's not in the "Download Zip" which is what the standard people like me will be using. Like you said, your fix seems not to be approved still. I'll leave this bug open until then.
Line 77 in PushNotification.cs from [Download zip]-button today still says:
"_certificate = string.IsNullOrEmpty(p12FilePassword)? new X509Certificate2(File.ReadAllBytes(p12File)): new X509Certificate2(File.ReadAllBytes(p12File), p12FilePassword);"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants