Closed tahakashaf closed 10 months ago
@tahakashaf idk if this is relevant to you, but following should help you:
nipyapi.config.nifi_config.verify_ssl = False
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
Closing as old, please reopen if the issue persists
Description
I have a nifi standalone 1.11.3 running securely. I generated self signed certificate using nifi-toolkit and provided the jks path and password as in below code but secure connection is failing.
What I Did
self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123) UPDATE :- I believe, i need to update config.py
default_certs_path = os.path.join(PROJECT_ROOT_DIR, 'demo/keys') default_ssl_context = { 'ca_file': os.path.join(default_certs_path, 'localhost-ts.pem'), 'client_cert_file': os.path.join(default_certs_path, 'client-cert.pem'), 'client_key_file': os.path.join(default_certs_path, 'client-key.pem'), 'client_key_password': 'clientPassword' }
@Chaffelson Can you pls help me map I have below files that I have generated below from toolkit
../nifi-toolkit-1.11.3/target/ ├── CN=taha_OU=NIFI.p12 ├── CN=taha_OU=NIFI.password ├── localhost │ ├── keystore.jks │ ├── nifi.properties │ └── truststore.jks ├── nifi-cert.pem └── nifi-key.key
Urgency
A blocker for dynamically creating flows in nifi environment.