Compare commits

..

2 Commits

Author SHA1 Message Date
9f1fc11029 Merge pull request '[🐛] 2차 APNs 확인' (#7) from seonkyu.kim/AcaMate_API:main into debug
All checks were successful
Back/pipeline/head This commit looks good
Reviewed-on: https://git.ipstein.myds.me/AcaMate/AcaMate_API/pulls/7
2024-11-29 17:14:45 +00:00
818721f11d [🐛] 2차 APNs 확인 2024-11-30 02:13:47 +09:00

View File

@ -37,7 +37,9 @@ 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);