I am having small initramfs with static busybox into it. The sole purpose of this initramfs is to download/upload files to the HTTPS server.
I have the proper certificate and credentials to do so. But when I execute the command:
curl --cacert /tmp/filename.pem -T /tmp/file_to_upload -u user:pass https://Server_name/
I greeted with an error:
curl: (60) SSL certificate problem: unable to get local issuer certificate
If I use the same command with same certificate onto Ubuntu, then everything goes smooth.
How am I suppose to resolve this issue ?
EDIT: I do not want to use "-k" or "--insecure" switch
NOTE: I do not have openssl or /etc/ssl directory into initramfs
curl --version
./etc/ssl/certs/ca-certificates.crt
doesn't contains the root CA you need. OR the HTTPS gives you an "Authority Information Access" and expect your clientcurl
to download the intermediate certificate from the given URL. (And `curlè doesn't handle AIA informations. Could you tell us which HTTPS server you use ? If this is a private server, make sure its certificate (intermediate certificate if needed) is in your trusted base.