I just updated certificates on my server.
After that I am getting this error:
SSLError: HTTPSConnectionPool(host='10.164.1.1', port=9999): Max retries exceeded with url: /rest/nice_endpoint (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))