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
This commit is contained in:
김선규 2024-11-29 17:14:45 +00:00
commit 9f1fc11029

View File

@ -37,7 +37,9 @@ public class PushServiceWithP12
};
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();
handler.ClientCertificates.Add(certificate);