How do you set up Amazon S3 in Moodle 2.1?
I've set up the followingin:
Settings > Site administration > Plugins > Repositories > Amazon S3
- Repository plugin name
- Access key - Generated by my Amazon S3 account
- Secret key - Generated by my Amazon S3 account
The S3 bucket works fine and I've tested it in the browser, I've also previously used it for other non-Moodle projects without issue. When I try to access my Amazon S3 repository on a Moodle course, I get:
ERROR: Invalid JSON string
( ! ) Warning: S3::listBuckets(): [60] SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in C:\wamp\public_html\moodle21\repository\s3\S3.php on line 88 Call Stack #TimeMemoryFunctionLocation 10.0247486104{main}( )..\repository_ajax.php:0 20.282321728320repository_s3->get_listing( )..\repository_ajax.php:140 30.282321729080S3::listBuckets( )..\lib.php:71 41.374521730208trigger_error ( )..\S3.php:88 ( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\public_html\moodle21\repository\s3\lib.php on line 72 Call Stack #TimeMemoryFunctionLocation 10.0247486104{main}( )..\repository_ajax.php:0 20.282321728320repository_s3->get_listing( )..\repository_ajax.php:140 {"list":[],"manage":false,"dynload":true,"nologin":true,"nosearch":true,"repo_id":7}
BTW, Moodle docs are unhelpful: http://docs.moodle.org/21/en/Amazon_S3_repository