Sandbox APNs not working

Hello,

I have the new root certificate is installed on the server (regarding "Action Required: Apple Push Notification Service Server Certificate Update"). I have switched to using sandbox environment to test if it would be working but I get error:

"reason":"BadCertificateEnvironment"

does it mean that the root certificate is not installed correctly or that is a different issue?

What could be the reason for that?

I have found that this response corresponds to "The client certificate is forthe wrong environment.", but there weren't an option to set environment on "https://identity.apple.com/pushcert/".

Answered by Engineer in 825062022

That's a different issue. If you were able to connect and get that error, that means you were able to successfully connect to the sandbox, meaning your root certificate is OK.

Based on your question, I presume you are sending an MDM push? MDM pushes are sent on production environment.


Argun Tekant /  DTS Engineer / Core Technologies

Accepted Answer

That's a different issue. If you were able to connect and get that error, that means you were able to successfully connect to the sandbox, meaning your root certificate is OK.

Based on your question, I presume you are sending an MDM push? MDM pushes are sent on production environment.


Argun Tekant /  DTS Engineer / Core Technologies

I don't know if this helps you but I have just opened a support ticket because the sandbox APN has not changed its certificate. I'm connecting in the UK and getting an Apple Public Server RSA CA not one linked in the emails sent by Apple.

Correcting myself. The certificate Apple are sending is an intermediate that chains back to UserTrust and I think that is in the email they have sent. Apologies for any red herring there.

Sandbox APNs not working
 
 
Q