Skip to content

fix: Improve curl TLS certificate error logging#1079

Merged
greenbonebot merged 1 commit into
mainfrom
fix/http-curl-tls-error-logging
Jun 5, 2026
Merged

fix: Improve curl TLS certificate error logging#1079
greenbonebot merged 1 commit into
mainfrom
fix/http-curl-tls-error-logging

Conversation

@ozgen

@ozgen ozgen commented Jun 5, 2026

Copy link
Copy Markdown
Member

What

  • Improved TLS certificate error logging for curl setup by including the actual curl_easy_strerror() message when setting the CA certificate, client certificate, or private key fails.

Why

  • This makes openvasd connection issues easier to debug, especially when the failure is caused by unsupported libcurl options, invalid certificate data, or TLS configuration problems.

Log the actual libcurl error when setting TLS certificate options fails.

Previously, gvmd only logged a generic message when configuring the CA
certificate, client certificate, or private key failed. This made it harder to
debug openvasd connection issues.

The updated logging includes curl_easy_strerror() output, which helps identify
whether the problem is caused by unsupported libcurl options, invalid
certificate data, or another TLS configuration issue.
@ozgen ozgen requested review from a team as code owners June 5, 2026 11:37
@greenbonebot greenbonebot enabled auto-merge (rebase) June 5, 2026 11:37
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 09964bd.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@greenbonebot greenbonebot merged commit b20479a into main Jun 5, 2026
22 of 24 checks passed
@greenbonebot greenbonebot deleted the fix/http-curl-tls-error-logging branch June 5, 2026 11:55
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.

3 participants