This means that setting the "Determines which Cerificate Authority file to use" option in the AWS SDK UI options menu doesn't work because it is checking for the boolean true value (=== true). This in turn means that you can't use the cacert.pem file that comes with the awssdk for SSL.

This is the code in awssdk/lib/requestcore/requestcore.class.php inside the sdk.

// chmod the file as 0755
if ($this->cacert_location === true)
{
  curl_setopt($curl_handle, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem');
}
elseif (is_string($this->cacert_location))
{
  curl_setopt($curl_handle, CURLOPT_CAINFO, $this->cacert_location);
}

I have a patch that I will attach once I have an issue number.

CommentFileSizeAuthor
#1 awssdk-cacert-option-1421754-1.patch950 bytesLarksmann

Comments

Larksmann’s picture

StatusFileSize
new950 bytes
boombatower’s picture

Title: UI sets aws_certificate_authority to 1 but awssdk explicitly checks for boolean true » Set aws_certificate_authority to TRUE instead of 1 in the UI
Status: Active » Fixed

Tweaked the code a tad since Drupal uses all caps for booleans and shortened comment to fit in 80 chars.

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.