Skip to content

OpenSSL legacy providers not available on Windows #9890

Closed

Description

@JanSlabon

Description

As OpenSSL 3 has disabled legacy algorithms by default we need a way to reactivate them.

This seems not to be possible with the current RC of PHP 8.2 on Windows:

grafik
I took the configuration file from https://salsa.debian.org/php-team/pear/php-dapphp-radius/-/merge_requests/2/diffs

Maybee legacy.dll is simply missing?

PHP Version

PHP 8.2.0RC5

Operating System

Windows 10

Activity

  1. self-assigned this
    on Nov 4, 2022
  2. cmb69 commented on Nov 4, 2022

    @cmb69
    Member

    Thanks for reporting!

    Indeed, we do not ship legacy.dll yet (but we should). It is contained in the openssl-3.0.7-vs16-x64.zip, though, and you can use that for now. Just put lib/openssl-modules/legacy.dll somewhere, and set the environment variable OPENSSL_MODULES to the folder where you've put legacy.dll. (It seems the current default doesn't make much sense since we switched the default config path; need to check that.)

  3. changed the title [-][8.2.0RC5] OpenSSL legacy providers on Windows[/-] [+]OpenSSL legacy providers not available on Windows[/+] on Nov 4, 2022
  4. added a commit that references this issue on Nov 4, 2022
    9b9edb6
  5. JanSlabon commented on Nov 8, 2022

    @JanSlabon
    Author

    Thanks for checking this! Your workaround with the OPENSSL_MODULES environment variable works for us for now.

  6. bukka commented on Nov 13, 2022

    @bukka
    Member

    The question has been answered and workaround works. Don't think there's anything else to do.

  7. bukka commented on Nov 13, 2022

    @bukka
    Member

    Ok I just see #9894 is still open so will re-open this.

  8. reopened this on Nov 13, 2022
  9. added a commit that references this issue on Nov 14, 2022
    9aa86e6
  10. added a commit that references this issue on Nov 14, 2022
    5a5037f
  11. added a commit that references this issue on Nov 15, 2022
    6fa26b1
  12. abhishek--ranjan commented on Dec 17, 2023

    @abhishek--ranjan

    what is the alternate to read the cert without fallback on the legacy dll.
    the issue is similar with most of the open ssl methods in php
    $certData = openssl_x509_read($certInput); //does not work

    [cert] => -----BEGIN CERTIFICATE-----
    MIIHAjCCBeqgAwIBAgIFbg38IWEwDQYJKoZIhvcNAQELBQAwgZMxCzAJBgNVBAYT
    AklOMS0wKwYDVQQKEyRDYXByaWNvcm4gSWRlbnRpdHkgU2VydmljZXMgUHZ0IEx0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions