Quantcast
Channel: Kaltura - Latest posts
Viewing all articles
Browse latest Browse all 7410

An error occurred (error code: API:-1) when logging in to admin panel

$
0
0

Hi,

You can edit:
/opt/kaltura/web/content/clientlibs/php5/KalturaClientBase.php
and instead of:

                // Set SSL verification
                if(!$this->getConfig()->verifySSL)
                {
                        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
                        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
                }
                elseif($this->getConfig()->sslCertificatePath)
                {
                        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
                        curl_setopt($ch, CURLOPT_CAINFO, $this->getConfig()->sslCertificatePath);
                }

just have:

                        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
                        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);

Also, need to set:
settings.clientConfig.verifySSL = false
in /opt/kaltura/app/configurations/admin.ini

But I would highly recommend using a valid cert. You can easily generate them for free using https://letsencrypt.org/


Viewing all articles
Browse latest Browse all 7410

Trending Articles