So I am getting this error when I am trying to install modules and dependencies for one of my codebases. (composer install for Drupal site)
Could not apply patch! Skipping. The error was: The "https://www.drupal.org/files/issues/2022-12-20/2689459-161.patch" file could
not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto
Failed to open stream: operation failed
In Patches.php line 331:
Cannot apply patch If you don't want to translate your URL alias, the original URL alias won't work with your translations (http
s://www.drupal.org/files/issues/2022-12-20/2689459-161.patch)!
This was working fine on my system until last week. I had to remove and reinstall git because it was acting weird with the GitHub Desktop application. During this process, I believe something changed. I saw that C:Program FilesCommon FilesSSL
folder was not there anymore. I didn’t check it before I faced this issue but it seems that this folder is normally present at this location.
I installed OpenSSL as well and this was restored to the same location. But it didn’t work for me. Then I thought it could be my company ZScaler tenant issue. I got in touch with that team and got the url whitelisted and also tried unloading ZScaler and eventually uninstalled it. But this didn’t work either.
I updated the CA certs as well with the latest ones available and changed the same under php.ini
of my XAMPP. That didn’t work.
I am looking for some answers on why this issue is being caused and what can be done in-order to move past this. Please let me know if you need any other information regarding this issue.
Any help is appreciated!
techenzie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.