Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenSSL Header Version != OpenSSL Library Version affecting HTTP/2 for APNS

i have this weird combo on my openSSL.

My command prompt openssl version returns the library version -> OpenSSL 1.0.2h 3 May 2016

where my php curl call -> echo "openssl version text: " . OPENSSL_VERSION_TEXT . "\n"; returns the header version: openssl version text: OpenSSL 1.0.1t 3 May 2016

i wonder how can i updated the OpenSSL Header version as i need 1.0.2 in order for the APNS to work as i'm still getting

HTTP/2 client preface string missing or corrupt. Hex dump for received bytes: 504f5354202f332f6465766963652f613433646466376235

i'm using WAMP Apache/2.4.17 (Win64) PHP/5.6.16

enter image description here

like image 831
Desmond Avatar asked Jul 13 '16 02:07

Desmond


1 Answers

You can solve this issue only by upgrading your PHP version OR you can also reinstall PHP/5.6.16. after that your both Openssl version will be same.

I have also faced this issue and after spending lots of time I found this solution.

like image 197
Dharmesh Goswami Avatar answered Sep 28 '22 08:09

Dharmesh Goswami