<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SSL-certificate-verify-result-unable-to-get-local-issuer/m-p/466392#M23790</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Our developer call API to upload file to Dropbox "&lt;SPAN&gt;&lt;A href="https://content.dropboxapi.com/2/files/upload" target="_blank" rel="noopener"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt;&lt;/SPAN&gt;" using C, but it has this error:&lt;BR /&gt;&lt;BR /&gt;I can you Postman or Java SDK code upload successful with the same paramter and access_token, but when our developer call curl in embedded device, it through this error.&lt;BR /&gt;&lt;BR /&gt;Anybody know why it happen?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;*   Trying 162.125.82.14:443...
*   Trying 2620:100:6032:14::a27d:520e:443...
* Immediate connect fail for 2620:100:6032:14::a27d:520e: Network is unreachable
* Connected to content.dropboxapi.com (162.125.82.14) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=Dropbox, Inc; CN=content.dropboxapi.com
*  start date: Jan 29 00:00:00 2020 GMT
*  expire date: Mar  2 12:00:00 2022 GMT
*  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA
*  SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
&amp;gt; POST /2/files/upload HTTP/1.1
Host: content.dropboxapi.com
Accept: */*
"Authorization: Bearer  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
"Dropbox-API-Arg: {"path": "/video/upload/T20371B001/2020/11/02/08-49-20-356990607.mp4","mode": "add","autorename": true,"mute": false,"strict_conflict": false}"
"Content-Type: application/octet-stream"
Content-Length: 9356071
Content-Type: multipart/form-data; boundary=------------------------211807cf1d53183a
Expect: 100-continue

* Mark bundle as not supporting multiuse
&amp;lt; HTTP/1.1 400 Bad Request
&amp;lt; Content-Length: 11
&amp;lt; Content-Type: text/plain
&amp;lt; Date: Mon, 02 Nov 2020 04:29:04 GMT
&amp;lt; Server: envoy
&amp;lt; Connection: close
&amp;lt; 
* Failed writing body (1 != 11)
D/[11-02 04:29:03 tid:-1224] (file_trans.c cb:273)  data is Bad Request 

* Closing connection 0&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Nov 2020 08:22:06 GMT</pubDate>
    <dc:creator>azure313</dc:creator>
    <dc:date>2020-11-02T08:22:06Z</dc:date>
    <item>
      <title>SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SSL-certificate-verify-result-unable-to-get-local-issuer/m-p/466392#M23790</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Our developer call API to upload file to Dropbox "&lt;SPAN&gt;&lt;A href="https://content.dropboxapi.com/2/files/upload" target="_blank" rel="noopener"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt;&lt;/SPAN&gt;" using C, but it has this error:&lt;BR /&gt;&lt;BR /&gt;I can you Postman or Java SDK code upload successful with the same paramter and access_token, but when our developer call curl in embedded device, it through this error.&lt;BR /&gt;&lt;BR /&gt;Anybody know why it happen?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;*   Trying 162.125.82.14:443...
*   Trying 2620:100:6032:14::a27d:520e:443...
* Immediate connect fail for 2620:100:6032:14::a27d:520e: Network is unreachable
* Connected to content.dropboxapi.com (162.125.82.14) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=Dropbox, Inc; CN=content.dropboxapi.com
*  start date: Jan 29 00:00:00 2020 GMT
*  expire date: Mar  2 12:00:00 2022 GMT
*  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA
*  SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
&amp;gt; POST /2/files/upload HTTP/1.1
Host: content.dropboxapi.com
Accept: */*
"Authorization: Bearer  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
"Dropbox-API-Arg: {"path": "/video/upload/T20371B001/2020/11/02/08-49-20-356990607.mp4","mode": "add","autorename": true,"mute": false,"strict_conflict": false}"
"Content-Type: application/octet-stream"
Content-Length: 9356071
Content-Type: multipart/form-data; boundary=------------------------211807cf1d53183a
Expect: 100-continue

* Mark bundle as not supporting multiuse
&amp;lt; HTTP/1.1 400 Bad Request
&amp;lt; Content-Length: 11
&amp;lt; Content-Type: text/plain
&amp;lt; Date: Mon, 02 Nov 2020 04:29:04 GMT
&amp;lt; Server: envoy
&amp;lt; Connection: close
&amp;lt; 
* Failed writing body (1 != 11)
D/[11-02 04:29:03 tid:-1224] (file_trans.c cb:273)  data is Bad Request 

* Closing connection 0&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 08:22:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SSL-certificate-verify-result-unable-to-get-local-issuer/m-p/466392#M23790</guid>
      <dc:creator>azure313</dc:creator>
      <dc:date>2020-11-02T08:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SSL-certificate-verify-result-unable-to-get-local-issuer/m-p/466572#M23799</link>
      <description>&lt;P&gt;There are a few things to note here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;"Network is unreachable" seems to indicate an issue with the network connection, but the connection appears to then actually work anyway.&lt;/LI&gt;
&lt;LI&gt;"unable to get local issuer certificate (20), continuing anyway" seems to indicate that the client wasn't able to get the relevant certificate from its local store, but ignored this issue. (Do you have certificate verification disabled? This isn't recommended, as a matter of security.) &lt;A href="https://www.ssllabs.com/ssltest/analyze.html?d=content.dropboxapi.com&amp;amp;s=2620%3a100%3a601b%3a14%3a0%3a0%3aa27d%3a80e&amp;amp;latest" target="_self"&gt;The&amp;nbsp;Dropbox API content servers are being served with valid certificates&lt;/A&gt; though, so you should make sure your system trusts that and enable verification.&lt;/LI&gt;
&lt;LI&gt;You seem to be using a "Content-Type" of&amp;nbsp;"multipart/form-data...", which isn't supported by the&amp;nbsp;Dropbox API. The&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_self"&gt;/2/files/upload&lt;/A&gt; endpoint expects a request of type "application/octet-stream".&lt;/LI&gt;
&lt;LI&gt;You seem to be getting a 400 error back. You should print out the response body itself, as it should contain a more useful error. (It may be related to the incorrect "Content-Type" noted above.)&lt;/LI&gt;
&lt;LI&gt;The "Failed writing body" seems to indicate that curl wasn't able to write the body out for some reason. I can't offer much support for that though as it seems to be related to curl itself.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 02 Nov 2020 16:38:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SSL-certificate-verify-result-unable-to-get-local-issuer/m-p/466572#M23799</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-02T16:38:08Z</dc:date>
    </item>
  </channel>
</rss>

