Reputation: 1
started recording my test on macOS, with below steps and I am receiving BELOW RESULTS
1. ERR_PROXY_CONNECTION_FAILED "If you use a proxy server… Check your proxy settings or contact your network administrator to make sure that the proxy server is working. If you don't believe you should be using a proxy server: Go to Applications > System Preferences > Network > Advanced > Proxies and deselect any proxies that have been selected."
2. Went to JMeter result tree Response message: 2.1 Connection reset ensure browser is set to accept the JMeter proxy certificate 443 2.2 Response message:Received fatal alert: certificate_unknown ensure browser is set to accept the JMeter proxy certificate
JMeter test Steps:
1. DNS Servers 8.8.8.8
2. Proxies settings for all of below (and selected) is localhost: 8888 Web HTTP Secure Web HTTPS FTP SOCKS Streaming Gopher
3Auto Proxy Discover (without selected localhost & 8888- no fields for this)
Jmeter certyficate should be valid till 2024, I have renewed certyficate, following this instruction -> https://stackoverflow.com/questions/64043676/cannot-update-jmeter-root-ca-certificate BUT IN KEYCHAIN **Expired: Monday, 26 December 2022 at 10:52:55 Central European Standard Time marked as trusted **
4. am using Chrome browser
Upvotes: 0
Views: 538
Reputation: 13
I were having the same issue and was that I'm connected to a VPN service. I disconnected it and all works perfectly.
Upvotes: 0
Reputation: 1
It works for now but, still seems not correct
When I set proxy.cert.dynamic_keys false and it finally started recording with some 200 statuses: Use dynamic key generation (if supported by JMeter/JVM). If false, will revert to using a single key with no certificate. Defaults to: true BUT SOME TESTS ARE STILL 443 because of cert Response message:Connection reset ensure browser is set to accept the JMeter proxy certificate
Tried your recommendations also uninstalled and installed JMeter again, cleared and using Firefox for now, cert is valid until 16.01.2023, I have set jmeter.properties file to “#proxy.cert.validity=365” (with hash) and I have checked Firefox -> settings -> cert view and there is 16.01.2023 so looks like again I have to uninstall and install again?
Is it correct that when test finished and I want to user browser + internet again I need to go to Firefox settings -> proxy and set back from manual mode (localhost 8888 + https) to no proxy? If I stay with manual there is an error: “The proxy server is refusing connections
An error occurred during a connection to www.tesla.com.
Check the proxy settings to make sure that they are correct.
Contact your network administrator to make sure the proxy server is working.”
Upvotes: 0
Reputation: 168147
Delete the certificate from the keychain completely
Delete proxyserver.jks
and ApacheJMeterTemporaryRootCA.crt
files in "bin" folder of your JMeter installation
Clear your Chrome browsing history completely
When creating the recording test plan from the template use www.testla.com
without any paths
When you start the HTTP(S) Test Script Recorder JMeter will generate new ApacheJMeterTemporaryRootCA.crt
file. Default validity is 7 days unless you change proxy.cert.validity
property
Import this certificate into your browser. At this stage I would suggest using Firefox instead of Chrome because:
It would be also a good idea to exclude other domains than tesla.com
from recording scope
Your recording should be successful
Also be aware of an alternative way of recording a JMeter test: JMeter Chrome Extension, in this case you won't have to worry about proxies and certificates
Upvotes: 0