Skip to content
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

Macos curl failure debug #11043

Closed
wants to merge 1 commit into from
Closed

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Apr 9, 2023

No description provided.

@devnexen
Copy link
Member

devnexen commented Apr 9, 2023

do you think adding ca-certificates to brew would help ?

@Girgias
Copy link
Member Author

Girgias commented Apr 9, 2023

do you think adding ca-certificates to brew would help ?

Maybe? I don't know MacOS so I'll give this a go

@Girgias
Copy link
Member Author

Girgias commented Apr 9, 2023

Still not:

006+ bool(false)
007+ client cert subject not in response
008+ CURL ERROR: 58
009+ could not load PEM client certificate from CURLOPT_SSLCERT_BLOB, LibreSSL error error:00000000:lib(0):func(0):reason(0), (no key found, wrong pass phrase, or wrong file format?)

I don't know if there is an issue with LibreSSL lacking the permissions to read the file or if it is a bug with it (unlikely tho)

@iluuu1994
Copy link
Member

With CURLOPT_VERBOSE and CURLOPT_CERTINFO:

006+ *   Trying 127.0.0.1:14430...
007+ * Connected to 127.0.0.1 (127.0.0.1) port 14430 (#0)
008+ * ALPN: offers h2
009+ * ALPN: offers http/1.1
010+ * could not load PEM client certificate from CURLOPT_SSLCERT_BLOB, LibreSSL error error:00000000:lib(0):func(0):reason(0), (no key found, wrong pass phrase, or wrong file format?)
011+ * Closing connection 0
012+ client cert subject not in response
013+ CURL ERROR: 58

This may be related to an update of LibreSSL. Updating to MacOS 12 seems to resolve the issue.

@Girgias
Copy link
Member Author

Girgias commented Apr 10, 2023

With CURLOPT_VERBOSE and CURLOPT_CERTINFO:

006+ *   Trying 127.0.0.1:14430...
007+ * Connected to 127.0.0.1 (127.0.0.1) port 14430 (#0)
008+ * ALPN: offers h2
009+ * ALPN: offers http/1.1
010+ * could not load PEM client certificate from CURLOPT_SSLCERT_BLOB, LibreSSL error error:00000000:lib(0):func(0):reason(0), (no key found, wrong pass phrase, or wrong file format?)
011+ * Closing connection 0
012+ client cert subject not in response
013+ CURL ERROR: 58

This may be related to an update of LibreSSL. Updating to MacOS 12 seems to resolve the issue.

Indeed this works, let me clean this up and force push

@iluuu1994
Copy link
Member

Jakub is looking at this to see if he can understand the root issue. Let's wait for his feedback.

@bukka
Copy link
Member

bukka commented Apr 11, 2023

Should be fixed by 4be6435 .

@bukka bukka closed this Apr 11, 2023
@bukka
Copy link
Member

bukka commented Apr 11, 2023

Updating to macos-12 might be a good idea though so feel free to re-open this and change title or create a new PR for that.

@Girgias Girgias deleted the macos-curl-failure-debug branch July 17, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants