AMANZATECH / apns-sharp

Automatically exported from code.google.com/p/apns-sharp
0 stars 0 forks source link

Running on Mono fails to load the certificate file #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
in NotificationConnection when you try to load the certificate file
(whether with or without password) the process fails.
the reason: not all the contractors are implemented there.

instead of using:
certificate = new X509Certificate2(p12File);

you can use this:
certificate = new X509Certificate2(System.IO.File.ReadAllBytes(p12File));

the contractor of X509Certificate2 that receives byte array of the file
data exists.
this solution will be good both for windows and mono..

this was checked on mono 2.6.1

Original issue reported on code.google.com by yani...@gmail.com on 3 Mar 2010 at 7:05

GoogleCodeExporter commented 8 years ago
Fixed via your suggestion.  Thanks!

Original comment by jond...@gmail.com on 27 Mar 2010 at 7:07