Local version of a WordPress site – SSL/HTTPS enforced?

WordPress keeps WP_HOME and WP_SITEURL in DB, this is set during initial installation and usually is the domain of your website, in your case it is a domain with https. Your visiting site via local domain, but WordPress redirects to https live domain, causing redirect loop which obviously fails. To fix this, change WP_HOME and … Read more

WordPress wp-admin https redirect loop

You’ve added $_SERVER[‘HTTPS’] = ‘on’; to your wp-config.php? You should also use the WP Migrate DB plugin to migrate from http://yoursite.com to https://yoursite.com

Getting error in Curl – Peer certificate cannot be authenticated with known CA certificates

I am getting the below error while making ssl connection with self signed certificate. “Peer certificate cannot be authenticated with known CA certificates” It is working fine with CA signed certificate. I am setting the below using curl_easy_setopt(). curl_easy_setopt(MyContext, CURLOPT_CAPATH, CA_CERTIFICATE_PATH) curl_easy_setopt(MyContext, CURLOPT_SSL_VERIFYPEER,TRUE); The curl versionlibcurl-7.19.7-26 Openssl version is 0_9_8u. Please let me know how … Read more

How to disable cURL SSL certificate verification

Simply add the -k switch somewhere before the url. Disclaimer: Use this at your own risk. -k, –insecure (TLS) By default, every SSL connection curl makes is verified to be secure. This option allows curl to proceed and operate even for server connections otherwise considered insecure. The server connection is verified by making sure the server’s certificate … Read more