Composer NoSSLException

  • | 667 points

    Hi everyone,

    I want to install dompdf in composer (composer require barryvdh/laravel-dompdf ) in the Laragon-terminal but get the error

    The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this
    own risk, by setting the 'disable-tls' option to true.

    One (insecure) option from here would be to deactivate this warning, but even then I get the exact same error. No matter what I try it's always this same error message.

    Does anybody know how to solve this issue?

  • administrators
    | 123538 points

    @laradom : openssl extension is enabled in Laragon by default.

  • | 667 points

    I see. In my setup of laragon openssl is also activated so it's maybe a firewall issue. I will check that.

  • | 667 points

    Solved it :)

    It was because of a second (old php.ini, from an earlier installation) php.ini-file I thought I had deleted before,

    turns out I didn't,
    and there 'openssl' was not enabled. So I enabled it and the installation worked.

    Sorry for bothering.

Looks like your connection to Laragon was lost, please wait while we try to reconnect.