HTTPS using problem on Android via curl library

I use cocos2dx v3.6 and updated curl and openssl libraries
when i try on android to download file from HTTPS url via class frameworks\js-bindings\cocos2d-x\extensions\assets-manager\Downloader i recieved curl error “Peer certificate cannot be authenticated with given CA certificates”
in your class frameworks\js-bindings\cocos2d-x\extensions\assets-manager\AssetsManager there is additional parameter in curl setup

curl_easy_setopt(_curl, CURLOPT_SSL_VERIFYPEER, 0L);

but it is not safe
How to rebuild curl or openssl libraries for using HTTPS protocol on android platform?

In fact, libcurl is built supporting OpenSSL, so i think you just change it to
curl_easy_setopt(_curl, CURLOPT_SSL_VERIFYPEER, 1L);
and have a try.

You are appreciated if you can give some feedback.