Drupal Piwik Plugin

Hi, I’ve set piwik up and it appears to work fine with a development Drupal 7 server that we are running, but when I went to set it up with a second similar server I’m getting the following errors when I try to enter the configuration information:

The validation of “https://piwik.test.hq.aws.nasa.gov/piwik.php” failed with error “Error opening socket ssl://piwik.test.hq.aws.nasa.gov:443” (HTTP code 0).
The validation of “https://piwik.test.hq.aws.nasa.gov/piwik.php” failed with error “Error opening socket ssl://piwik.test.hq.aws.nasa.gov:443” (HTTP code 0).

I’ve seen some information on this when I googled it, but no real solution steps mentioned. Does anybody have any ideas:

Drupal 7.56
PHP 7.1.12
Piwik: 3.2.1

Hi,
I haven’t used Drupal yet, so I can’t help directly. In addition the drupal plugin isn’t maintained by the piwik team, but a third party maintainer, so it may help if you try to contact him.

Besides that the basic troubleshooting may help:
Is the https certificate of the piwik server valid? Does php trust it in case it’s a selfsigned one?