wpsmush on nextgen gallery error

When trying to smush nextgen gallery images I am getting the error
Error posting to API: Problem with the SSL CA cert (path? access rights?)
on all images and it wont work.