I have a problem with developing a "provider" in APNS . My server is trying to send messages using apns-client , it seems that there are no problems when sending messages, but the device does not receive any messages at all.
I recently changed the * .pem file to a new one. Messages were correctly received when using the previous * .pem file, so I am sure that there are no problems connecting to the server and sending the script (written in Python). The reason is probably because the old * .pem file is valid, but the new * .pem file is not.
I really want to get the error response from the APNS server if the * .pem file is invalid, but it seems that the APNS server or the apns client library do not return any error signals, even if the * .pem file is invalid. I proved this fact by adding a hundred 'a'to the line up -----END RSA PRIVATE KEY-----in * .pem and running the same python script. Yes, he still did not receive error messages.
Since the APNS server does not return any error messages, it is almost impossible to verify that the * .pem file is valid ... Are there any methods to verify the validity of the * .pem file?
source
share