none
OneDrive support for TLS 1.1 and 1.2 RRS feed

  • Question

  • We are working on our OneDrive integration, in particular uploading files via a Url to a OneDrive account. OneDrive is failing whenever the sourceUrl is to a TLS 1.1 or TLS 1.2 server. It succeeds when TLS 1.0 is available. We do not wish to reduce our security to allow the integration. Please advise if this method of uploading requires TLS 1.0, and if there is an alternative way of achieving the same thing.

    $ curl -L -H"Authorization: $ACCESS_TOKEN"  -H"Content-Type: application/json" -H"Prefer: respond-async" "https://graph.microsoft.com/v1.0/me/drive/root/children" -d'{
      "@microsoft.graph.sourceUrl": "https://tls-v1-2.badssl.com:1012/icons/icon-green.png",
      "name": "icon-green.png",
      "file": { }
    }'

    This returns a 202 Accepted, with a Location header containing a URL to track the upload. This returns:

    {"operation":"DownloadUrl","status":"failed","statusDescription":"Unexpected response 'InternalServerError The underlying connection was closed: An unexpected error occurred on a send.' when downloading all content"}

    With a TLS 1.0 Server

    $ curl -L -H"Authorization: $ACCESS_TOKEN"  -H"Content-Type: application/json" -H"Prefer: respond-async" "https://graph.microsoft.com/v1.0/me/drive/root/children" -d'{
      "@microsoft.graph.sourceUrl": "https://tls-v1-0.badssl.com:1010/icons/icon-red.png",
      "name": "icon-green.png",
      "file": { }
    }'

    {"operation":"DownloadUrl","percentageComplete":100.0,"resourceId":"6A071D3FEEC6C6B6!115","status":"completed","statusDescription":"URL was successfully downloaded to target"}


    Thursday, January 17, 2019 5:27 AM

Answers