git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] http: store credential when PKI auth is used
@ 2021-03-12  0:48 John Szakmeister
  2021-03-12  0:48 ` [PATCH v2 1/2] " John Szakmeister
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: John Szakmeister @ 2021-03-12  0:48 UTC (permalink / raw)
  To: git, Jeff King; +Cc: John Szakmeister

Here's my second attempt at getting the certificate password into the credential
store.  I tested from a working PKI setup and found curl--at least reasonable
recent versions of it--return CURLE_SSL_CERTPROBLEM:

       CURLE_SSL_CERTPROBLEM (58)
              problem with the local client certificate.

It appears there could be another possible error from curl:

       CURLE_SSL_CONNECT_ERROR (35)
              A  problem  occurred  somewhere  in the SSL/TLS handshake. You
              really want the error buffer and read the message there as it
              pinpoints the problem slightly more. Could be  certificates  (file
              formats, paths, permissions), passwords, and others.

This seems less likely to be a bad client password scenario, so I did not look
for this particular error to reject it.

I also added one other small patch to remove the check of a non-empty password
before calling credential_store() for proxy_auth, as credential_store() already
checks for a non-empty password and gracefully handles it when it doesn't.

-John

John Szakmeister (2):
  http: store credential when PKI auth is used
  http: drop the check for an empty proxy password before approving

 http.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

-- 
2.30.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-03-12  2:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12  0:48 [PATCH v2 0/2] http: store credential when PKI auth is used John Szakmeister
2021-03-12  0:48 ` [PATCH v2 1/2] " John Szakmeister
2021-03-12  0:58   ` Junio C Hamano
2021-03-12  1:41   ` brian m. carlson
2021-03-12  1:45     ` Jeff King
2021-03-12  2:27       ` John Szakmeister
2021-03-12  0:48 ` [PATCH v2 2/2] http: drop the check for an empty proxy password before approving John Szakmeister
2021-03-12  1:31 ` [PATCH v2 0/2] http: store credential when PKI auth is used Jeff King
2021-03-12  2:37   ` John Szakmeister

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).