Error when validating the APNS Certificate

I trying to validate the certificate I created for APNS using the following command but I get an error.

openssl s_client -connect gateway.push.apple.com:2195 -cert temp.pem -debug -showcerts

Error: getaddrinfo: nodename nor servname provided, or not known connect:errno=0

Any help will be greatly appreciated.

You are using an endpoint that is no longer functional.

Try api.push.apple.com:443 as explained at Send a device push notification using a certificate

Error when validating the APNS Certificate
 
 
Q