Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution for P12 reading issue in newer OpenSSL #124

Merged
merged 13 commits into from
Apr 21, 2023

Conversation

tschoffelen
Copy link
Owner

Scope

Adds an alternative method to read P12 files for installations with newer OpenSSL versions, where using the built-in PHP function openssl_pkcs12_read() fails.

This new method relies on invoking openssl using shell_exec, which also won't work for everyone, but hopefully increases the number of users for which this will work out of the box.

Notes

Also added a basic PHPUnit test, which runs in GitHub Actions on multiple PHP versions, and both with the OpenSSL legacy patch enabled and disabled to ensure future compatibility.

Related issues

Fixes #112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid data error
1 participant