Skip to content

wolfssl backend behavior differs from openssl when CURLOPT_SSLCERT is used but CURLOPT_SSLKEY wasn't #14007

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alexsn opened this issue Jun 24, 2024 · 1 comment
Labels

Comments

@alexsn
Copy link

alexsn commented Jun 24, 2024

I did this

I tried running curl --cert <path> <url_requiring_client_cert> which works with openssl backend but fails with wolfssl.

The reason being that openssl backend will assume key_file is the same as cert_file (code here) which wolfssl makes no such assumption (code here).

I expected the following

I expect wolfssl backend to assume key_file is the same as cert_file, which means both ssl backend show behave the same.

curl/libcurl version

curl 8.8.0

operating system

All

@alexsn
Copy link
Author

alexsn commented Jun 24, 2024

@bagder - #14008 addresses this.

alexsn pushed a commit to alexsn/curl that referenced this issue Jun 24, 2024
When user sets CURLOPT_SSLCERT but leaves CURLOPT_SSLKEY unset assume
the path passed in CURLOPT_SSLCERT holds the ssl key which is what
we do in openssl implementation.

Closed curl#14007
@bagder bagder closed this as completed in ad3e476 Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants