Curl command line https transfer failing in openwrt compliant code base

Hi All
I had enabled curl command line option via menuconfig in
the code base and built an image. But when trying to do curl https upload I am facing an error as:

  • curl --cacert /etc/ssl/certs/ca.crt https://localhost:443

  • curl: (77) error setting certificate verify locations:

  • CAfile: /etc/ssl/certs/ca.crt

  • CApath: /etc/ssl/certs

I tried setting the ca path in the curlrc file, exporting CURL_CA_BUNDLE but none of this is fixing my issue. If anyone has any idea could you please share.
Thanks in Advance

Not sure which certs you have installed and where. At least for me:

jeff@office:~$ sudo opkg files ca-bundle
Package ca-bundle (20170717) is installed on root and has the following files:

I have a self signed certificate that I have placed in /etc/ssl/certs.I have verified the
the certificate with another device and it is working fine. Issue is the error in the device in
setting the path for the certs.