Search code examples
docusignapisslv3

DocuSign sandbox connection is getting an sslv3 alert handshake failure


All of my connections to the DocuSign sandbox are getting this curl error:

error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure

I have only noticed this today, and can't remember the last time I checked the sandbox connection so I couldn't say when this first broke.


Solution

  • Specific to PHP, I changed the CURLOPT_SSLVERSION from this:

    curl_setopt($c, CURLOPT_SSLVERSION, 3);
    

    to this:

    curl_setopt($c, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1)
    

    and the API is functional again.