I have an issue with validation in Apple pay, I am using Windows OS in developing the back-end
the steps:
1- I downloaded merchant Identity certificate and its private key with p12 extension
2- converted the 2 files to .pem using openssl pkcs12 -in AP.p12 -out crt.pem -clcerts -nokeys pkcs12 -in Key.p12 -out key.pem -nocerts -nodes
3- created 1 file using the generated files pkcs12 -export -in crt.pem -inkey key.pem -out ApplePay9.pem
4- tested using CURL curl -g --data '{"merchantIdentifier":"merchant...apple.pay", "displayName":"", "initiative":"web", "initiativeContext":"com.*.**"}' --cert /Users/Public/ApplePay9.pem https://apple-pay-gateway-cert.apple.com/paymentservices/startSession
and I get this error
curl: (3) URL using bad/illegal format or missing URL curl: (3) URL using bad/illegal format or missing URL curl: (3) URL using bad/illegal format or missing URL curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_REVOKED (0x80092010) - The certificate is revoked.
when I tried using the merchant Identity certificate (.p12) directly using this command
curl -g --data '{"merchantIdentifier":"merchant...apple.pay", "displayName":"", "initiative":"web", "initiativeContext":"com..**"}' --cert /Users/Public/AP.p12:123456 https://apple-pay-gateway-cert.apple.com/paymentservices/startSession
it take sometime then got this error
curl: (3) URL using bad/illegal format or missing URL curl: (3) URL using bad/illegal format or missing URL curl: (3) URL using bad/illegal format or missing URL curl: (35) schannel: failed to receive handshake, SSL/TLS connection failed