Dropbox backup error SSLError: bad handshake certificate verify failed

After setting up Dropbox backup as per the instructions i am getting following error:

Backup Upload Failed

Oops, your automated backup to Dropbox failed.

Error message:


Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py", line 45, in take_backup_to_dropbox
    did_not_upload, error_log = backup_to_dropbox()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py", line 98, in backup_to_dropbox
    upload_file_to_dropbox(filename, "/database", dropbox_client)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py", line 150, in upload_file_to_dropbox
    create_folder_if_not_exists(folder, dropbox_client)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py", line 182, in create_folder_if_not_exists
    dropbox_client.files_get_metadata(folder)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/base.py", line 482, in files_get_metadata
    None,
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py", line 239, in request
    timeout=timeout)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py", line 330, in request_json_string_with_retry
    timeout=timeout)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py", line 414, in request_json_string
    timeout=timeout,
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py", line 522, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py", line 596, in send
    r = adapter.send(request, **kwargs)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/requests/adapters.py", line 497, in send
    raise SSLError(e, request=request)
SSLError: bad handshake: Error([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)

Please contact your system manager for more information.

I tried to set ssl_verify to False by below command but it doesn’t work

bench config --set ssl_verify False

Is there a workaround? Please suggest.

Thanks in advance.