I recently introduced SSL across my entire Drupal-Civicrm site. Now when I visit the contact summary page, I'm confronted with warning errors (below) that are clearly related to SSL interfering with accessing the contact's image dimensions.
Note that the image is visible in the summary page but its aspect ratio is wrong (the image is squeezed), confirming that getting the image's dimensions failed (without SSL, the image aspect was correct).
I am using a self-signed certificate as I'm still in the development stage. I tried to disable certificate verification in php.ini (setting the parameters verify_peer=false, allow_self_signed=true, verify_peer_name=false) but it did not solve the issue.
Warning: getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in CRM_Contact_Page_View->preProcess() (line 164 of /var/www/prod/sites/all/modules/civicrm/CRM/Contact/Page/View.php).
Warning: getimagesize(): Failed to enable crypto in CRM_Contact_Page_View->preProcess() (line 164 of /var/www/prod/sites/all/modules/civicrm/CRM/Contact/Page/View.php).
Warning: getimagesize(http://abdong.duckdns.org/index.php?q=civicrm/contact/imagefile&photo=500x500bb_3_a5ece8ea35cdb1947316bd7c98d5daf9.jpg): failed to open stream: operation failed in CRM_Contact_Page_View->preProcess() (line 164 of /var/www/prod/sites/all/modules/civicrm/CRM/Contact/Page/View.php).