hurl icon indicating copy to clipboard operation
hurl copied to clipboard

adding tls configuration to request section

Open lepapareil opened this issue 4 years ago • 2 comments

An api uses an old tls version, or an specific cert, in general, existing http clients (like curl) allow to set tls configuration, it would be helpful if i could specify tls parameters in request section:

GET https://my_api.com

[Tls]
tls-version: <1.0|1.1....>
ca-cert: <certificate[:password]>
ca-path: <path>
cert-status: <true|false>
cert-type: <type>

what do you think about it ?

lepapareil avatar Feb 12 '21 23:02 lepapareil

We should indeed be able to set all these options. So far, we have been using command-line options to specify "curl" options. Matching the curl options is very clear and already known by curl users.

We plan to add these ssl-related options in the near future:

--cacert <file>
--capath <dir>
...

fabricereix avatar Feb 13 '21 08:02 fabricereix

We the 1.7.0 [Options] section we can cons specify these per request:

GET https://example.org
# An options section, each option is optional and applied only to this request...
[Options]
cacert: /etc/cert.pem   # a custom certificate file
insecure: true          # allows insecure SSL connections and transfers

Maybe @lepapareil @fabricereix we can close this one?

jcamiel avatar Sep 07 '22 14:09 jcamiel