Skip to content

Instantly share code, notes, and snippets.

@apimaker001
apimaker001 / openSSL_certificate_verify_failed
Created February 20, 2021 09:49
OpenSSL and certificate verify failed error + cURL error 60
PHP, OpenSSL and certificate verify failed error + cURL error 60
Some times you may receive this error:
stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
How to fix:
Download https://curl.haxx.se/ca/cacert.pem
In php.ini add openssl.cafile="/path/to/cacert.pem".
@apimaker001
apimaker001 / gist:3c25b554f8ef36ae42cee99527d40b9d
Last active March 8, 2021 20:31
Google Sheets + Apps script + RapidAPI + Zillow
var endpoint = 'https://zillow-com1.p.rapidapi.com/property';
var key = '';
function _getValue(obj, path){
var keys = path.split('.');
var key = keys.shift();
var value = null;
if (obj.hasOwnProperty(key)){
var value = obj[key];
#!/bin/bash
trap 'echo "# $BASH_COMMAND";read' DEBUG
echo codeLine1
echo codeLine2
echo codeLine3
import requests
files = {"file": ("addresses.txt", open("addresses.txt", "rb"), "text/plain")}
test_url = "https://zillow-com1.p.rapidapi.com/resolveAddressToZpid"
headers = {
"X-RapidAPI-Key": "",
"X-RapidAPI-Host": "zillow-com1.p.rapidapi.com",
}
test_response = requests.post(test_url, files = files, headers = headers)