How to configure InvokeHTTP processor for HTTPS? - apache-nifi

So I am trying to make GET request and as Remote URL I am using this open api endpoint.
But InvokeHTTP processor shows an error: Unable to find valid certification path to requested target
So since I am new to nifi I didn't touch any other setting.
Can someone please help me with proper configuration for this?
Thank you beforehand!

Set a SSL Context Service property (https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-ssl-context-service-nar/1.6.0/org.apache.nifi.ssl.StandardSSLContextService/index.html) in the InvokeHTTP processor

Related

Set HTTP proxy in Windows programmatically

I'm trying to see if it is possible to set HTTP proxy configuration programmatically from my C++/WinRT code. I found that one can get the current proxy configuration with NetworkInformation.GetProxyConfigurationAsync from UWP. But is it possible to change it?
My goal is to find a proxy server on the local network and set it up for Edge (or any other browser in the system) as the HTTP proxy. So, that afterward, for whoever is using a browser on that system, all requests would go through the proxy server.
I don't seek to use UWP or any application model in particular. Any way of achieving my goal (that described above) from C++ code would work.

Setup authorizers.xml for secured Nifi server

I am trying to setup a simple https security using certificates for my Nifi server. I am able to setup the secure connection by setting
nifi.security.keystore=.../nifiuser.jks and installing certifcates etc.
When I access through Web UI , i get :
No applicable policies could be found. Contact the system administrator.
I think i need to configure "authorizers.xml" but I dont know how. I just want "nifiuser" to have all admin rights.
Please help! Thank you
There are a lot of docs and posts that describe how to do this:
https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#authorizer-configuration
https://bryanbende.com/development/2018/10/23/apache-nifi-secure-cluster-setup
https://pierrevillard.com/2016/11/29/apache-nifi-1-1-0-secured-cluster-setup/

How to manage Proxy in Jmeter

I have to do performance test of a web based application through Jmeter. To connect to the application , I have to be in Client VPN and it has specific proxy to connect. The application will NOT work in Local host..
How to perform this? I tried by running Jmeter from command prompt . Please help .
You can configure JMeter to use proxy in 2 ways:
Command-line
jmeter -H your_proxy_host -P your_proxy_port
Using system.properties (the file lives under "bin" folder of your JMeter installation, add the next lines to it:
http.proxyHost=your_proxy_host
http.proxyPort=your_proxy_port
https.proxyHost=your_proxy_host
https.proxyPort=your_proxy_port
JMeter restart will be required to pick the properties up.
First check that you have the correct proxy parameters like Proxy Server IP/address,port no,username and password.
Then, in the first HTTP Request, click on advanced tab and there you find Proxy server section.
Fill the required information and run the jmeter. Based on the response you can judge where you are able to send the request via proxy or not.
I have used it with proxy server name with username and pwd. For me it worked, by that I means you can try by whatever information you have.
Then, you can set the properties permanently as suggested by Dmitri. Also, it can be set in HTTP Request Default Config.
Check the below link for more information:-
https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request

SSL Handshake exception in nifi

I am invoking an API command (nifi-api/access/token) to get the access token. But i am getting error like this java.net.SSLHandShakeException unable to find valid certification path for requested target. we have LDAP configured in NiFi Cluster and i am able to login to NiFi UI using my credentials. I have started exploring the NiFi rest API for the first time. Any help would be appreciated !!
(P.S I want to use rest api by codes and native processors ( i can do in simple nifi which i have on my desktop) how can i make my task on nifi with kerberso autentification?
Thank you in Advance.
import certificate into truststore.jks using keytool. then in the invokehttp processor use SSL Context Service that should point to your truststore.jks

Failure authenticating with NTLM <any realm> in jmeter

While Replaying my Jmeter script I am getting the above NTLM and negotiate Authentication kind of errors. Help me to resolve the issue
I have used Authentication Manager . there I have entered my domain and realm details
Please confirm in Authentication manager , I need to give my server name in REALM configuration.
Please share sample krb5.conf details. in the conf file I need to give server details or client details.
No one will be able to help you unless you provide your HTTP Authorization Manager and HTTP Request configuration.
No one will be able to provide krb5.conf and jaas.conf files as there are to many ways of configuring Kerberos so client configuration will be very different.
I would suggest getting familiarized with Windows Authentication with Apache JMeter article and if you will be still experiencing problems enable some extra logging by setting the following properties:
JMeter Property:
log_level.org.apache.commons.httpclient.Authenticator=trace
Java System Property:
sun.security.krb5.debug
Also you can add debug=true line to the jaas.conf file

Resources