I need to run OpenSSL GOST for PHP rebuild it with the addition of the line

OPENSSL_config (NULL);

in the file "ext / openssl / openssl.c". I insert a line into this file in the right place and execute the commands:

./configure --with-pdo-mysql --with-mysql --with-curl --enable-intl --enable-mbstring = all

make

make install

The PHP version is updated, everything works, but in the end it still gives out

error: 0609E09C: digital envelope routines: PKEY_SET_TYPE: unsupported algorithm

I understand that everything is not so simple with patches on Debian and just adding a line to the file is not enough? PHP 5.4 version, on a Debian 7 server with Apache.

  • By itself, the string OPENSSL_config (NULL); will not add support for any algorithm. - Vladimir Martyanov
  • @ Vladimir Martianov, look at the user’s question history - openssl is already configured. - aleksandr barakin
  • @alexanderbarakin in any case, the specified line does not add support for any algorithms and I have strong doubts that openSSL is correctly compiled. - Vladimir Martyanov
  • @ Vladimir Martiyanov, well, the author of the question stated (in the first question) that everything is all right with openssl. there, in fact, there is almost nothing to set up - the Internet is full of instructions. but about php, judging by my searches (even after the first of the questions) - as far as I understood, “everything is very bad”. - aleksandr barakin
  • @alexanderbarakin OpenSSL is compiled fine, and everything works through the console. This line appears in all PHP + GOST solutions, just PHP initially works with the wrong configuration file, for example: phpclub.ru/talk/threads/curl-GOST.74854 - xXxxX

0