web-eid / ocsp-php

OCSP library for PHP
MIT License
3 stars 3 forks source link

Fatal error: Uncaught UnexpectedValueException: responseType is not "id-pkix-ocsp-basic" #18

Closed jakenoble closed 2 months ago

jakenoble commented 2 months ago

Today I started getting the following error, out of the blue. Does anyone have any idea about this? Googling has turned out nothing.

This occurs when trying to parse Apple Server Notifications - is that is any help.

Fatal error: Uncaught UnexpectedValueException: responseType is not "id-pkix-ocsp-basic" but is  in vendor/web-eid/ocsp-php/src/OcspResponse.php:66
Stack trace:
#0 vendor/web-eid/ocsp-php/src/OcspResponse.php(137): web_eid\ocsp_php\OcspResponse->getBasicResponse()
#1 vendor/hoels/app-store-server-library-php/src/AppStoreServerLibrary/ChainVerifier.php(239): web_eid\ocsp_php\OcspResponse->validateCertificateId(Array)
#2 vendor/hoels/app-store-server-library-php/src/AppStoreServerLibrary/ChainVerifier.php(169): AppStoreServerLibrary\ChainVerifier->checkOcspStatus(Object(AppStoreServerLibrary\X509\Certificate), Object(AppStoreServerLibrary\X509\Certificate), Object(AppStoreServerLibrary\X509\Certificate))
#3 vendor/hoels/app-store-server-library-php/src/AppStoreServerLibrary/ChainVerifier.php(112): AppStoreServerLibrary\ChainVerifier->verifyChain(Object(AppStoreServerLibrary\X509\Certificate), Object(AppStoreServerLibrary\X509\Certificate), true, Object(DateTime))
#4 vendor/hoels/app-store-server-library-php/src/AppStoreServerLibrary/SignedDataVerifier.php(158): AppStoreServerLibrary\ChainVerifier->verify('eyJhbGciOiJFUzI...', true, Object(AppStoreServerLibrary\Models\Environment))
#5 vendor/hoels/app-store-server-library-php/src/AppStoreServerLibrary/SignedDataVerifier.php(86): AppStoreServerLibrary\SignedDataVerifier->decodeSignedObject('eyJhbGciOiJFUzI...')
#6 public/notifications/ios/production/index.php(70): AppStoreServerLibrary\SignedDataVerifier->verifyAndDecodeNotification('eyJhbGciOiJFUzI...')
#7 {main}
  thrown in vendor/web-eid/ocsp-php/src/OcspResponse.php on line 66