Hi everyone! I set up my local network Blynk server. It listen on https port 9443. I try to send GET request with presetup SSL certificate, but it always faild to verify it.
I tried in server.properties file next settings.
with preinstalled certificates on RPI on server:
server.ssl.cert=/etc/ssl/certs/ca-certificates.crt
server.ssl.key= (Are there something that i have to write here???)
server.ssl.key.pass= (Are there something that i have to write here???)
And self generated with openssl:
server.ssl.cert=/home/pi/server.crt
server.ssl.key=/home/pi/server.pem
server.ssl.key.pass=12345?
And default:
#server.ssl.cert=
#server.ssl.key=
#server.ssl.key.pass=
My python3 code:
http = urllib3.PoolManager(cert_reqs='CERT_REQUIRED', ca_certs='/etc/ssl/certs/ca-certificates.crt')
# http = urllib3.PoolManager(cert_reqs='CERT_REQUIRED', ca_certs=certifi.where())
def set_pin(pin, value):
blynk_server='192.168.1.252:9443'
r = http.request('GET', 'https://' + blynk_server + '/' + auth_token + "/update/" + str(pin) + "?value=" + str(value))
print(r.status)
What i doing wrong?