Unable to enable VirusTotal extension: Failed check API key. HTTP response: Unable to Connect to ssl://www.virustotal.com:443. Error #0

Created:

2017-05-02 11:04:17 UTC

Modified:

2017-08-08 13:10:28 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to enable VirusTotal extension: Failed check API key. HTTP response: Unable to Connect to ssl://www.virustotal.com:443. Error #0

Symptoms

Unable to enable VirusTotal extension:

Failed check API key. HTTP response: Unable to Connect to ssl://www.virustotal.com:443. Error #0

Unable to open https://virustotal.com through php script script.php executed under sw-engine with the following content:

# cat script.php
<?
echo file_get_contents('https://virustotal.com');
?>
# /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini script.php
PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/psa/admin/conf/php.ini on line 39 in Unknown on line 0
PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /root/script.php on line 2
PHP Warning: file_get_contents(): Failed to enable crypto in /root/script.php on line 2
PHP Warning: file_get_contents(https://virustotal.com): failed to open stream: operation failed in /root/script.php on line 2

Cause

Misconfiguration of ca-certificate.

Resolution

Update ca-certificate using the following commands:

update-ca-trust force-enable
update-ca-trust extract

Have more questions? Submit a request
Please sign in to leave a comment.