За последние 24 часа нас посетили 22140 программистов и 1119 роботов. Сейчас ищут 743 программиста ...

Не работает SSL в composer - пишет INT_RSA_VERIFY:bad signature

Тема в разделе "Прочие вопросы по PHP", создана пользователем Lexer, 18 апр 2020.

  1. Lexer

    Lexer Активный пользователь

    С нами с:
    5 авг 2014
    Сообщения:
    25
    Симпатии:
    1
    Искал ответы в гите композера и в stackoverflow, пробовал делать примерно так, как там, но не помогло. Там было написано примерно так: нужно скачать сертификат cacert.pem и прописать в конфигах пхп путь до него. Я это сделал, скачав его с https://github.com/composer/ca-bundle/blob/master/res/cacert.pem и указав в php.ini путь до него c:/usr/local/ssl/cacert.pem, но это положительного эффекта не дало. По-прежнему bad signature.

    Win10 x64
    Open Server 5.2.2, PHP 7.1

    config PHP:
    [openssl]
    openssl.cafile=C:/usr/local/ssl/cacert.pem
    openssl.capath=C:/usr/local/ssl/

    Сам сертификат первые строки:
    $ cat "C:/usr/local/ssl/cacert.pem"
    ##
    ## Bundle of CA Root Certificates
    ##
    ## Certificate data from Mozilla as of: Wed Jan 1 04:12:10 2020 GMT

    Выполнял команду $ composer config --global cafile "c:/usr/local/ssl/cacert.pem", не помогло.

    Ниже текст ошибки:
    ---
    $ composer global require laravel/installer
    Changed current directory to C:/Users/User1/AppData/Roaming/Composer
    The "https://repo.packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
    error:04091068:rsa routines:INT_RSA_VERIFY:bad signature
    error:0D0C5006:asn1 encoding routines:ASN1_item_verify:EVP lib
    error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
    Failed to enable crypto
    failed to open stream: operation failed
    https://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date


    [Composer\Downloader\TransportException]
    The "https://packagist.org/p/laravel/ins...6b8f4561fbc20e646aeb4bbf15f4727eafaab1ba962.j
    son" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
    error:04091068:rsa routines:INT_RSA_VERIFY:bad signature
    error:0D0C5006:asn1 encoding routines:ASN1_item_verify:EVP lib
    error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
    Failed to enable crypto
    failed to open stream: operation failed
    ---