cURL / Mailing Lists / curl-users / Single Mail

curl-users

cCURL failed setting cipher list

From: Indtiny S <indtiny_at_gmail.com>
Date: Tue, 15 Dec 2015 11:12:28 +0900

Hi,

I need to configure the cCURL client to specifically use the cipher
TLS_RSA_WITH_AES_256_CBC_SHA256. so I used the below curl option

curl_easy_setopt(curl, CURLOPT_SSL_CIPHER_LIST,
"TLS_RSA_WITH_AES_256_CBC_SHA256");
Code Compiles properly but I get the below error during handshake,

* Connected to 192.168.52.107 (192.168.52.107) port 8888 (#0)
* failed setting cipher list: TLS_RSA_WITH_AES_256_CBC_SHA256
* Closing connection 0
201: failed setting cipher list: TLS_RSA_WITH_AES_256_CBC_SHA256
Curl Easy perform() failed: Couldn't use specified SSL cipher
 error59
But if I comment this option request goes fine, but the Client Hello
Includes all the chipers list .

Since I know the cipher at the server and the one I want to use, How to
configure the curl so that it can start a handshake with that cipher only?

Am running my client on Ubuntu PC.

 Regards

Indra

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-12-15