Closed (fixed)
Project:
AWS SDK for PHP
Component:
UI
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2012 at 20:01 UTC
Updated:
13 Feb 2012 at 23:20 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | awssdk-cacert-option-1421754-1.patch | 950 bytes | Larksmann |
Comments
Comment #1
Larksmann commentedComment #2
boombatower commentedTweaked the code a tad since Drupal uses all caps for booleans and shortened comment to fit in 80 chars.
Thanks.