Compare commits
No commits in common. "9f1fc110297a0c661bf962409f7d3e797e29d70d" and "cf63383b04875237bc9249d8e9940e60d33f961d" have entirely different histories.
9f1fc11029
...
cf63383b04
|
@ -37,9 +37,7 @@ public class PushServiceWithP12
|
||||||
};
|
};
|
||||||
var jsonPayload = JsonSerializer.Serialize(payload);
|
var jsonPayload = JsonSerializer.Serialize(payload);
|
||||||
|
|
||||||
var certificate = new X509Certificate2(p12Path, p12Password,
|
var certificate = new X509Certificate2(p12Path, p12Password);
|
||||||
X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.Exportable
|
|
||||||
);
|
|
||||||
|
|
||||||
var handler = new HttpClientHandler();
|
var handler = new HttpClientHandler();
|
||||||
handler.ClientCertificates.Add(certificate);
|
handler.ClientCertificates.Add(certificate);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user