LocalDropbox setup, upload fails: "Peer certificate cannot be authenticated"

33 views
Skip to first unread message

Jay Sitter

unread,
Jul 5, 2014, 1:21:25 PM7/5/14
to open...@googlegroups.com
Filed an issue here:

https://github.com/photo/frontend/issues/1500

I'm seeing the following error in my PHP log when trying to upload with 4.0.0-rc5:

[Sat Jul 05 13:02:32 2014] [error] [client XXX.XXX.XXX.XXX] {severity:warn, description:"Dropbox exception from getMetaData call", additional:{file:/var/www/openphoto/src/libraries/external/Dropbox/OAuth/PHP.php, line:72, message:"making the request failed (Peer certificate cannot be authenticated with given CA certificates)", trace:"#0 /var/www/openphoto/src/libraries/external/Dropbox/OAuth/PHP.php(72): OAuth->fetch('https://api.dro...', Array, 'GET', Array)
#1 /var/www/openphoto/src/libraries/external/Dropbox/API.php(327): Dropbox_OAuth_PHP->fetch('https://api.dro...', Array)
#2 /var/www/openphoto/src/libraries/adapters/FileSystemDropboxBase.php(186): Dropbox_API->getMetaData('OpenPhoto/2014_...')
#3 /var/www/openphoto/src/libraries/adapters/FileSystemDropboxBase.php(173): FileSystemDropboxBase->putFileInDirectory('2014_07_July', '/tmp/phpWukzxS', 'test-53b82...')
#4 /var/www/openphoto/src/libraries/adapters/FileSystemLocalDropbox.php(86): FileSystemDropboxBase->putPhotos(Array)
#5 /var/www/openphoto/src/libraries/models/Photo.php(1085): FileSystemLocalDropbox->putPhotos(Array)
#6 /var/www/openphoto/src/libraries/models/Photo.php(830): Photo->createAndStoreBaseAndOriginal('test.jpg', '/tmp/phpWukzxS', 1404579752, '1')
#7 /var/www/openphoto/src/libraries/controllers/ApiPhotoController.php(473): Photo->upload('/tmp/phpWukzxS', 'test.jpg', Array)
#8 [internal function]: ApiPhotoController->upload()
#9 /var/www/openphoto/src/libraries/external/epi/EpiRoute.php(125): call_user_func_array(Array, Array)
#10 /var/www/openphoto/src/html/index.php(19): EpiRoute->run()
#11 {main}"}}, referer: http://example.com/photos/upload/beta
 

This might be due to a change in Dropbox's API? This used to work fine a couple months ago.


Jay Sitter

unread,
Jul 5, 2014, 3:00:52 PM7/5/14
to open...@googlegroups.com
Looks like the key is here:


"making the request failed (Peer certificate cannot be authenticated with given CA certificates)"

even wget and curl complain about dropbox's certificates. they must have changed recently or something?

Jay

unread,
Jul 5, 2014, 5:39:50 PM7/5/14
to open...@googlegroups.com
I was able to fix this with the following two commands:

$ sudo wget https://ssl-tools.net/certificates/fa7798fa915a206ba743f346701c0bf02b8eb37b.pem -o /usr/local/share/ca-certificates
$ sudo update-ca-certificates

Jaisen Mathai

unread,
Jul 5, 2014, 5:57:08 PM7/5/14
to open...@googlegroups.com
Can you cross post this to Github?
--
You received this message because you are subscribed to the Google Groups "OpenPhoto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openphoto+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
-- Snet form my mobl phoone
Reply all
Reply to author
Forward
0 new messages