from: "curl: (58) unable to set client certificate"
to: curl: (58) unable to set client certificate [error:
0A00018F:SSL
routines::ee key too small]
Closes #9228
Max Mehl <max.mehl@fsfe.org>
rzrymiak on github <106121613+rzrymiak@users.noreply.github.com>
Oliver Roberts <oliver@futaura.co.uk>
+opensignature on github <antonio@piumarossa.it>
}
if(SSL_CTX_use_certificate(ctx, params.cert) != 1) {
- failf(data, "unable to set client certificate");
- X509_free(params.cert);
+ failf(data, "unable to set client certificate [%s]",
+ ossl_strerror(ERR_get_error(), error_buffer,
+ sizeof(error_buffer)));
return 0;
}
X509_free(params.cert); /* we don't need the handle any more... */