Open Elrinth opened 11 years ago
If you mean this, I already committed below as a bugfix. But still not approved. https://github.com/vardars/Moon-APNS/commit/e4365c68d17de1d2507466941c6150fd1ed0ffca
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);"
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...