'Apple Push Service certificate is not trusted

I have recently created an Apple Push Service certificate on my M1 mac mini. In the Keychain, it says the certificate is not trusted.

enter image description here

I have installed the Developer Relations Intermediate Certificate as mentioned in here

Also installed the following Intermediate Certificates from Apple

enter image description here

Still, the Push Service certificate shows it's not trusted. Meanwhile, new development and distribution certificates created are marked as "This certificate is valid". Can anyone point me in the right direction to fix this issue?



Solution 1:[1]

I have installed the G3, G4, and G5 certificates from the Apple certificate authority and that solved my problem

https://www.apple.com/certificateauthority/

enter image description here

Edit: G4 Certificate is key for solving the issue.

Solution 2:[2]

Just a more specific answer from Guru's:

Go to the info panel of your untrusted certificate and you'll see the issuer's info, like this: enter image description here

This indicates the issuer is a Worldwide Developer Relations G4 (for now).

Then go to https://www.apple.com/certificateauthority/ and pick that certificate and install it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2