You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
The text was updated successfully, but these errors were encountered:
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...
The text was updated successfully, but these errors were encountered: