I am using Laragon 4.0.16 on Windows 10 to develop in PHP.
I enabled SSL using the Laragon tool to do so:
Also added laragon.crt to the Trust Store.
I can access my test project athttps://project.test
correctly.
But, there is an issue:
Warning: getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
I have been reading that the way to fix such issue is to set curl.cainfo and openssl.cafile in the PHP ini configuration file.
I did so, in the Laragon global php.ini located atC:\laragon\bin\php\php-xxx\php.ini
:
curl.cainfo = "C:\laragon\etc\ssl\cacert.pem"
openssl.cafile = "C:\laragon\etc\ssl\cacert.pem"
But after restarting Laragon, the php warning persists.
What else can I do to track down the problem and fix it?
Thank you.
I tried figuring that issue out a couple of hours. All the solutions i found stated the following things:
Didn't helpt at all. The thing that actually worked was to switch to php 7.3 (my code wasn't capable of running 7.4 and i ran into different errors there). The reason why seems to be that for php 7.2.19 the php_openssl.dll has the version 1.1.1b and the php_openssl.dll for version 7.3 and up has the version 1.1.1k.
That finally fixed the issue. I hope that helps someone couple of hours of madness. I'm not sure if this can occur again in future versions of php :)
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.
PHP (from the English Hypertext Preprocessor - hypertext preprocessor) is a scripting programming language for developing web applications. Supported by most hosting providers, it is one of the most popular tools for creating dynamic websites.
The PHP scripting language has gained wide popularity due to its processing speed, simplicity, cross-platform, functionality and distribution of source codes under its own license.
https://www.php.net/
Welcome to the Q&A site for web developers. Here you can ask a question about the problem you are facing and get answers from other experts. We have created a user-friendly interface so that you can quickly and free of charge ask a question about a web programming problem. We also invite other experts to join our community and help other members who ask questions. In addition, you can use our search for questions with a solution.
Ask about the real problem you are facing. Describe in detail what you are doing and what you want to achieve.
Our goal is to create a strong community in which everyone will support each other. If you find a question and know the answer to it, help others with your knowledge.