You are not logged in.
I moved my database to a windows 2019 server, GLPI 10 is working but when accessing the Marketplace I get this error:
( ! ) Warning: Connection failed. If you use a proxy, please configure it. (SSL certificate problem: unable to get local issuer certificate) in C:\wamp64\www\glpi\src\Toolbox.php on line 1526
Call Stack
# Time Memory Function Location
1 0.0002 365592 {main}( ) ...\index.php:0
2 0.0005 369192 require( 'C:\wamp64\www\glpi\ajax\common.tabs.php ) ...\index.php:82
3 0.0235 3725336 CommonGLPI::displayStandardTab( $item = class Glpi\Marketplace\View { public $get_item_to_display_tab = TRUE; protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE; public $taborientation = 'horizontal' }, $tab = 'Glpi\\Marketplace\\View$0', $withtemplate = '', $options = ['_target' => '/front/marketplace.php', 'id' => '0'] ) ...\common.tabs.php:117
4 0.0236 3726360 Glpi\Marketplace\View::displayTabContentForItem( $item = class Glpi\Marketplace\View { public $get_item_to_display_tab = TRUE; protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE; public $taborientation = 'horizontal' }, $tabnum = '0', $withtemplate = '' ) ...\CommonGLPI.php:691
5 0.0236 3726360 Glpi\Marketplace\View::installed( $force_refresh = ???, $only_lis = ???, $string_filter = ??? ) ...\View.php:123
6 0.0246 3728264 Glpi\Marketplace\View::checkRegistrationStatus( ) ...\View.php:218
7 0.0261 3732048 GLPINetwork::isServicesAvailable( $curl_error = ??? ) ...\View.php:148
8 0.0261 3732112 Toolbox::callCurl( $url = 'https://services.glpi-network.com/api/registration/', $eopts = [], $msgerr = 'Connection failed. If you use a proxy, please configure it. (SSL certificate problem: unable to get local issuer certificate)', $curl_error = 'SSL certificate problem: unable to get local issuer certificate', $check_url_safeness = ???, $curl_info = ??? ) ...\GLPINetwork.php:320
9 0.2617 3738888 trigger_error( $message = 'Connection failed. If you use a proxy, please configure it. (SSL certificate problem: unable to get local issuer certificate)', $error_level = 512 ) ...\Toolbox.php:1526
GLPI Network services website seems not available from your network or offline
Maybe you could setup a proxy or please check later
I searched for this error online and mentioned placing a CURL certificate as PEM or CRT in my php directory C:\wamp64\bin\php\php8.0.26\extras\ssl
I added the PEM and also convert to CRT but I'm still getting the same error.
Thanks for your help!
Last edited by aldojr404 (2023-07-20 16:09:29)
Offline
Can anyone provide some guidance please?
Offline
Updating the certificates for curl should work. Did you restart the web server after adding the new certificates?
I tend to avoid Windows these days so I cannot say if the process is correct for this platform but a quick search showed that it should be correct along with modifying the php.ini file to set/add the "curl.cainfo" option to the path to the PEM file.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
Thank you so much for your reply,
I was able to solve it by following these steps from another thread, there were two PHP.ini files and I was missing the certificate path on the other PHP.ini file
Here's what I did:
Download the certificate bundle.
Put it inside of C:\wamp64\bin\php\your php version\extras\ssl
Inside of C:\wamp64\bin\apache\apache(version)\modules, make sure the file mod_ssl.so is there
Inside of Apache directory C:\wamp64\bin\apache\apache2.4.27\conf, enable mod_ssl in httpd.conf
Enable php_openssl.dll in php.ini. Be aware my problem was that I had two php.ini files and I need to do this in both of them. First one can be located inside of your WAMP taskbar icon here.
enter image description here
And the other one is located in C:\wamp64\bin\php\php(Version)
Find the location for both of the php.ini files and find the line curl.cainfo = and give it a path like this curl.cainfo = "C:\wamp64\bin\php\php(Version)\extras\ssl\cacert.pem"
Now save the files and restart your server and you should be good to go
Offline