php - SSL decryption failed or bad record mac in NGINX Server with cacert.pem set -


i trying connect secure link using curl.

i have set following 2 parameters in curl of php page

curl_setopt ($ch, curlopt_ssl_verifypeer, true);

curl_setopt ($ch, curlopt_cainfo, "/cacert.pem");

but still getting below error :ssl error.

after adding pem file in nginx server getting error below in nginx ssl3_get_record:decryption failed or bad record mac

the same pem file works on windows wamp server not working in nginx server.

please let me know if else missing.

basically curl used include list of accepted cas, not accept longer bundles ca certs. default reject ssl certificates unverifiable.

you'll have ca's cert , point curl @ it. more details here


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -