Skip to content

option 'ciphers ' does not handle several valid ciphers. #3077

@Ricky-Tigg

Description

@Ricky-Tigg

I did this:

I specified two valid ciphers (ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384) according to undocumented syntax in Curl manual, with purpose to get the last one selected in the connection. Option is used once.

curl(1) – sample

--ciphers [list of ciphers]
(TLS) Specifies which ciphers to use (...) https://curl.haxx.se/docs/ssl-ciphers.html
If this option is used several times, the last one will be used.

$ curl --ciphers ECDHE-RSA-AES128-GCM-SHA256 ECDHE-RSA-AES256-GCM-SHA384 -OL https://getfedora.org/static/checksums/Fedora-Server-29_Beta-1.5-x86_64-CHECKSUM
curl: Remote file name has no length!
curl: try 'curl --help' or 'curl --manual' for more information
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256 (...)

I expected the following

a valid output as in:

$ curl --ciphers ECDHE-RSA-AES256-GCM-SHA384 -OL https://getfedora.org/static/checksums/Fedora-Server-29_Beta-1.5-x86_64-CHECKSUM
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1213  100  1213    0     0   1589      0 --:--:-- --:--:-- --:--:--  1587

curl/libcurl version

curl 7.59.0 (x86_64-redhat-linux-gnu) libcurl/7.59.0 OpenSSL/1.1.0i zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.4) libssh/0.8.3/openssl/zlib nghttp2/1.32.1
Release-Date: 2018-03-14
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL Metalink

operating system

$ cat /etc/redhat-release
Fedora release 28 (Twenty Eight)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions