Unable to access plugins manager in jmeter - jmeter

I am trying to access the plugins manager but keep getting this error
I am using apache-jmeter-5.4.1, and have manually download jmeter-plugins-manager-1.6.jar, and put it into the lib/ext folder. However, I am still encounter this issue.

unable to find valid certification path to requested target error means that JMeter's Plugins Manager cannot securely connect to its plugins repository, the address is https://jmeter-plugins.org/repo/
It means that the certificate has expired, it's not trusted by CA, there is a mismatch between issuer and dns address, etc. As there are thousands of the JMeter Plugins Manager users and only you reported this issue in last 12 hours I think it is your problem, like you're working for a shitty company which is using MITM certificate for monitoring your networking activity and JMeter Plugins Manager complains that the certificate should not be in the chain.
You can diagnose the issue by either adding javax.net.debug=all line to JMeter's system.properties file (lives in "bin" folder of your JMeter installation) or using external tool like openssl
If you don't care about the root cause in the slightest and OK with your employer or ISP or government monitoring your traffic given you can open the plugins repository URL in the browser - you can just obtain the certificate, install it into the truststore and configure JMeter to use the truststore.

Please check your proxy setting to access the internet.
You have downloaded & set up plugin manager but plugin manager is unable to access repo via your current internet proxy setting.
I hope you have switched off your recording settings(localhost:8080 set up to record).

Related

Not able to open Plugin Manager in Apache JMeter 1.6

I have downloaded the Plugin Manager for JMeter from the following link,
https://jmeter-plugins.org/wiki/PluginsManager/
previously it worked fine for me, I never had to do any proxy settings or any changes, but now when I download and try to open it in Jmeter, it gives me the following error:
JMeter version - 5.4.1
It looks like you're behind a corporate proxy which uses MITM certificate to intercept and decrypt secure traffic between your machine and Internet (or other machines in Intranet)
The certificate is not known to Java therefore Plugins Manager cannot securely connect to its repository.
The options are in:
Import the certificate as the trusted certificate and point JMeter to use the truststore containing this certificate via javax.net.ssl.trustStore system property
Configure JMeter Plugins Manager to use HTTP protocol for communicating with the plugins repository, it can be done by adding the next line to user.properties file:
jpgc.repo.address=http://jmeter-plugins.org/repo/
More information:
Configuring JMeter
Apache JMeter Properties Customization Guide
Unable to connect to SSL services due to "PKIX Path Building Failed" error

Jmeter certificate not working in most sites

After I installed the Jmeter Certificate I still see error for missing certificate. I can access few sites which I couldn't before installing the certificate, but still in most sites I get the error. I use FireFox and Jmeter 5.4.1. How to fix this errors after I already have installed certificate?
Your "not working" statement doesn't tell the full story, I can think of one possible reason:
You visited a web site over HTTPS protocol before installing JMeter's certificate
You're trying to open the same web site after installing JMeter certificate
Firefox detects certificates mismatch and prevents the website from opening
The easiest solution is to completely delete your browsing history or if you don't want to do this create a new "clean" Firefox profile which will be used just for recording purposes.
More information: Recording HTTPS Traffic with JMeter's Proxy Server
Also be aware of JMeter Chrome Extension, in this case you won't have to worry about proxies and certificates.

JMeter Plugin Manager installation issue

While associating J-Meter plugin jar file in lib/ext folder of J-Meter Setup,I am getting SSL certificate error after clicking 'Plugin manager' from 'Options' Menu.Could you please assist me for the same?
Thanks
Amitenter image description here
Most probably you're behind the corporate proxy which uses an SSL certificate for securing the traffic between itself and clients.
Java uses cacerts file to check the validity of the SSL certificates and you're getting this error because the certificate is not known to Java.
The solution would be obtaining the certificate from the proxy server (it can be done using either OpenSSL or just a web browser) and adding it to the Java cacerts
You can also try downloading Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files, it might be enough to resolve your issue.
More information:
How to Install the JMeter Plugins Manager
Plugins Manager Network Configuration

NET::ERR_CERT_AUTHORITY_INVALID Error with Chrome 66 using Apache JMeter as Proxy

Above mentioned privacy error is displaying while I tried to record some scenarios in Apache JMeter 4.0. I have installed ApacheJMeterTemporaryRootCA certificate in my local bin path of JMeter folder and imported in Trusted Root Certification Authorities folder in chrome.
And myself using Chrome : Version 66.0.3359.27 (Official Build) dev (32-bit) to recording purpose in JMeter. Also given 8080 as a port number in both proxy settings in chrome and JMeter - Test Script Recorder.
Still can't understand why I can't record several actions, as I did same thing in previous versions of Apache JMeter. So please let me know the solution for it.
You can use the following workarounds:
Just type badidea anywhere in the page and you will be able to proceed.
Launch Chrome with --ignore-certificate-errors command-line argument
Switch to alternative way of recording a JMeter test using i.e. JMeter Chrome Extension, in this case you won't have to worry about configuring proxies and/or SSL certificates.

Performance Testing for Hybird App

I am supposed to do a performance test for a Hybrid App.
First, from my adroid device i have modified the proxy settings by choosing Manual option and entered my system IP address as proxy server 192.168.1.10 and entered Port as 8080.
And then from Jmeter 3 i took Recording Controller Template from HTTPS Script Recorder I entered the port as 8080.
After Starting HTTPS Script Recorder when i opened my hybrid app it was not working. "Unfortunately we cannot find your account information". This means that Hybrid apps is not connecting internet through Proxy mode.
But i am able to get response from other apps installed in my android device.
I tried Neoload, Blazemeter as well https://guide.blazemeter.com/hc/en-us/articles/207420545-BlazeMeter-Proxy-Recorder-Mobile-and-web-.
But the same issue i faced every where.
Please provide me a solution to make the Hybird App work even after connecting internet through Proxy Mode.
Thanks
N Ali
You need to find out the main error using i.e. Logcat Command to narrow down the possible reasons as there could be too may of them.
The below hints are applicable for HTTPS traffic only, however I'm pretty sure that modern applications use HTTPS protocol.
You may need to use a 3rd-party application in order to set up HTTPS proxy, i.e. ProxyDroid
You will definitely need to install JMeter's self-signed certificate onto device so JMeter could decrypt and record secure traffic.
Locate ApacheJMeterTemporaryRootCA.crt under "bin" folder of your JMeter installation and transfer it to your android device (i.e. send it to yourself via the email)
Click at the attached certificate
Follow android system certificate installation dialog to get it set up
Be aware that JMeter's certificate has limited life time (7 days) so you won't be able to record secure traffic if it is expired.
More information:
HTTPS recording and certificates
Load Testing Mobile Apps Made Easy
In addition to Dimitri's answer reg JMeter, NeoLoad also has a similar CA certificate which needs to be added to the device.
You can locate this certificate from
C drive -> Users -> Username -> Appdata -> Roaming -> Neotys -> CA certificate
Copy this certificate to your device (or mail it to yourself) and install it either by directly selecting it or from the security settings.
Once the certificate is installed in the device, you should be able to record the HTTPs traffic from the application via proxy.
P.S. Ensure that you are able to view all hidden files coz by default Appdata is hidden.

Resources