more relaxed verification of SSL chains, COUCHDB-840

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@980269 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ibrowse_http_client.erl b/ibrowse_http_client.erl
index a767b84..65d9cb9 100644
--- a/ibrowse_http_client.erl
+++ b/ibrowse_http_client.erl
@@ -119,7 +119,7 @@
         host = Host,
         port = Port,
         is_ssl = (Protocol == https),
-        ssl_options = [{ssl_imp, new}]
+        ssl_options = [{ssl_imp, new}, {depth, 9}]
     },
     put(ibrowse_trace_token, [Host, $:, integer_to_list(Port)]),
     put(my_trace_flag, ibrowse_lib:get_trace_status(Host, Port)),