简体   繁体   English

如何通过PHP知道iOS推送通知的SSL证书何时过期

[英]How to know when SSL certificates are expires for iOS push notification by PHP

Have a good day! 祝你有美好的一天! I implemented a push notification script on PHP for an iOS App. 我在iOS应用程序的PHP上实现了推送通知脚本。 The push was delivered to the registered users of APP properly. 推送已正确交付给APP的注册用户。 But suddenly the push doesn't blasted to the devices in which my app installed. 但是突然,这种推动并没有爆发到安装我的应用程序的设备上。 When I searched for the reason, I found that the SSL certificates for push notification has been expired. 搜索原因时,发现推送通知的SSL证书已过期。

Can anybody know to find the lifetime of SSL certificate of iOS app by using php or how can we find whether certificate is active or expired by using php 有人可以知道使用php查找iOS应用的SSL证书的有效期吗,或者如何通过php查找证书是处于活动状态还是已过期的信息

Thanks in advance! 提前致谢!

You can check the lifetime of the certificates in your KeyChain, and on Apple's Developer portal. 您可以在KeyChain和Apple的Developer门户上检查证书的有效期。

钥匙扣

开发门户

I'm not sure which PHP library you're using for the push notifications, but chances are that it throws an exception or error message which you can catch / log. 我不确定您要使用哪个PHP库进行推送通知,但是很可能它会引发异常或错误消息,您可以捕获/记录该消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM