UniversityPCCare / gsx-rest-php

PHP+MySQL implementation for Apple's GSX REST API
GNU General Public License v3.0
13 stars 6 forks source link

401 Problem #4

Closed semihyilmaz closed 4 years ago

semihyilmaz commented 4 years ago

I am getting Error 401. I also created a new certificate from Apple. How do we solve this problem? Tried to fetch Auth Token for user xxxx. My problem is some : https://forums.developer.apple.com/thread/126747

kevingrabher commented 4 years ago

Have you tried via curl?

curl -X GET https://partner-connect-uat.apple.com/gsx/api/authenticate/check -H 'X-Apple-ShipTo: 0000123456' -H 'X-Apple-SoldTo: 0000123456' --cert AppleCare-Partner-0000123456.Test.apple.com.chain.pem:Password123 --key privatekey-test.pem

Are you certain your IP address is whitelisted? Be sure to use the correct certificate and key for the test environment.

If nothing helps you'll perhaps need to contact GSX WS support.

semihyilmaz commented 4 years ago

Thanks for your support. "openssl rsa -des3 -in your.key -out your.encrypted.key" is solved my problem.