Ddns scripts curl error

I have upgrade firmware to r3060-b367eef and get error in ddns scripts

151034 ERROR : cURL Error: '48'
151034 : curl: (48) Error
151034 WARN : Transfer failed - retry 8/0 in 60 seconds

curl installed

From the cURL manual:

CURLE_UNKNOWN_OPTION (48)
An option passed to libcurl is not recognized/known. Refer to the appropriate documentation. This is most likely a problem in the program that uses libcurl. The error buffer might contain more specific information about which exact option it concerns.

Are you using SSL? Through mbedTLS by any chance?

yes, i use ca-certificates

You might be experiencing something similar to this. Ddns-scripts might be using --capath somewhere.

Yep:

# grep capath /usr/lib/ddns/*
/usr/lib/ddns/dynamic_dns_functions.sh:__PROG="$__PROG --capath $cacert"

with capath error 48
with cacert error 77
path to ca-certificates is correct

i removed ca-certificates, and download this certificate: https://curl.haxx.se/ca/cacert-2017-01-18.pem, i renamed it to ca-certificates.crt and moved it to /etc/ssl/certs/. Then i changed path to certificate in ddns configuration. After this curl work fine and ddns-script also.

1 Like