curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

weird behavior with -E option without password

From: laalsaas via curl-users <curl-users_at_lists.haxx.se>
Date: Fri, 18 Oct 2024 01:39:24 +0200

Hi,

I've noticed a case of curl behaving different from the man page, but
I'm not sure whether the mistake is in the docs or in curl.

The -E option takes an argument of the form certfile[:password] .
The man page states:

> If the optional password is not specified, it is queried for on the
> terminal.

However, if I run `curl <url> -E file.p12 --cert-type P12`, it
immediately fails with the following message:

> curl: (58) could not parse PKCS12 file, check password, OpenSSL error error:11800071:PKCS12 routines::mac verify failure

When I run the same command, but specifying :<password> after file.p12,
it works fine. So apparently curl doesn't prompt on the terminal for the
password, so either the man page or the implementation is wrong

regards,
laalsaas
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-10-18