Jmeter throws Could not create keystore error for HTTPS - jmeter

I am using jmeter 2.7 and am trying to hit my test server that is HTTPS.
Per my last question Ant did help me setting https correctly on my machine. It worked fine but then all of a sudden I can't do any https tests.
I have not made any changes to my settings. I just have protocol set to https. When I run I get the below keystore error. Can some one please tell me how to fix this?
Could not create keystore: [default =KeyStore.getDefaultType()] not found
java.lang.RuntimeException: Could not create keystore: [default = KeyStore.getDefaultType()] not found
at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:116)
at org.apache.jmeter.util.JsseSSLManager.createContext(JsseSSLManager.java:232)
at org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:198)

This is working for me now. I had to uninstall and install jmeter and things seem to be ok now.

Related

How to run sonar analysis when Sonar server is configured over HTTPS

We have a SonarQube server which is by default running on HTTP and 9000 port. We decided to use SonarQube over HTTPS configured using IIS reverse proxy and disable HTTP.
Previously in sonar-scanner.properties,sonar.host.url is configured to run as mentioned below.
sonar.host.url=http://localhost:9000 and now we want to change it to sonar.host.url=https://localhost.
On the browser https://localhost works fine. However when I configure this url in sonar-scanner.properties and try to run the sonar analysis, it says url can not be reached. Could anyone give me some suggestions to fix this issue.
Regards,
Sharieff.
Assign a valid certificate to your website. Using localhost is not the best choice; you should use and configure a valid domain name (https:/mycompany.com for example). On the machine you use to analyse you must update the Java Runtime by registering the certificate associated with this name and maybe also other (root) certificates in the certificate chain. See this blog for all the details. After executing these steps you should be able to upload the analysis to you SonarQube instance.

SonarQube - Fail to connect to update center with no proxy

I installed SonarQube 5.6.3 and when I go to Update Center, I can only see "Installed" plugins. But the other tabs don't show anything (0 shown). I'm not using a proxy. The logs show the following:
ERROR web[o.s.s.p.UpdateCenterClient] Fail to connect to update center
org.sonar.api.utils.SonarException: Fail to download: https://update.sonarsource.org/update-center.properties (no proxy)
at org.sonar.core.util.DefaultHttpDownloader.failToDownload(DefaultHttpDownloader.java:157) ~[sonar-core-5.6.3.jar:na]
I tried downloading manually the file https://update.sonarsource.org/update-center.properties using wget and it worked fine.
Why is not working from UpdateCenter? Do I need to specify anything in sonar.properties file?
The only line related to Update Center in sonar.properties is: sonar.updatecenter.activate=true
You are using IBM JDK that does not behave like Oracle JDK with TLS connections. And without setting com.ibm.jsse2.overrideDefaultTLS to true, the application is unable to connect to the Update Center that is using TLS 1.2 (http://www.ibm.com/support/knowledgecenter/en/SSYKE2_8.0.0/com.ibm.java.security.component.80.doc/security-component/jsse2Docs/matchsslcontext_tls.html#matchsslcontext_tls)
Adding -Dcom.ibm.jsse2.overrideDefaultTLS=true to sonar.web.javaOpts in conf/sonar.properties will solve your issue.
I highly recommand to add this property (-Dcom.ibm.jsse2.overrideDefaultTLS=true) to sonar.web.javaOpts, sonar.ce.javaOpts and sonar.search.javaOpts
Cheers,
I followed the suggestion from Eric, and installed Java from Oracle, instead of IBM. Before doing that, I tried adding -Dcom.ibm.jsse2.overrideDefaultTLS=true to java options, but nothing changed. As soon as I changed to Oracle JRE, the Update Center started working as expected.
Thanks a lot for your help
Make sure that you set your http and https proxy configuration in sonar.properties:
http.proxyHost=<host>
http.proxyPort=<port>
http.proxyUser=<username>
http.proxyPassword=<password>
https.proxyHost=<host>
https.proxyPort=<port>
https.proxyUser=<username>
https.proxyPassword=<password>
Before you try any options available here, please check the internet connectivity to sonarqube machine and check(refresh) the ALM configuration again.

How to install/update plugins through SonarQube behind a proxy? [duplicate]

This question already has answers here:
Update center behind proxy : howto with https bintray repository?
(3 answers)
Closed 7 years ago.
I have a SonarQube 5.1.2 installation, and I am trying to install and update some plugins, the server have no direct internet access, we have a proxy here, lets say http://1.1.2.3:9191/ is our proxy and we have user and password authentication. Well I have write the sonar.properties accord to the docs
http.proxyHost=10.1.2.3
http.proxyPort=9191
http.proxyUser=theuser
http.proxyPassword=thepassword
I go to the http://sonar.sub.domain:9000/updatecenter/updates and I can see the list of plugins and the updates, so I assume in this point the communication by proxy is OK.
But, when I try to update or install a plugin I have this error in the page (Notice the no proxy message).
Fail to download the plugin (scmsvn, version 1.2) from https://bintray.com/artifact/download/sonarsource/SonarQube/org/sonarsource/scm/svn/sonar-scm-svn-plugin/1.2/sonar-scm-svn-plugin-1.2.jar (error is : Fail to download: https://bintray.com/artifact/download/sonarsource/SonarQube/org/sonarsource/scm/svn/sonar-scm-svn-plugin/1.2/sonar-scm-svn-plugin-1.2.jar (no proxy)) [hide]
So I do debug logging and try and this appears in logs
2015.09.11 09:32:47 DEBUG web[o.s.a.u.HttpDownloader$BaseHttpDownloader$HttpInputSupplier] Download: http://update.sonarsource.org/update-center.properties (HTTP proxy: 1.1.2.3:9191)
2015.09.11 09:32:49 DEBUG web[o.s.a.u.HttpDownloader$BaseHttpDownloader$HttpInputSupplier] Download: https://bintray.com/artifact/download/sonarsource/SonarQube/org/sonarsource/scm/svn/sonar-scm-svn-plugin/1.2/sonar-scm-svn-plugin-1.2.jar (no proxy)
2015.09.11 09:33:10 DEBUG web[o.s.s.p.PluginDownloader] Fail to download the plugin (scmsvn, version 1.2) from https://bintray.com/artifact/download/sonarsource/SonarQube/org/sonarsource/scm/svn/sonar-scm-svn-plugin/1.2/sonar-scm-svn-plugin-1.2.jar (error is : Fail to download: https://bintray.com/artifact/download/sonarsource/SonarQube/org/sonarsource/scm/svn/sonar-scm-svn-plugin/1.2/sonar-scm-svn-plugin-1.2.jar (no proxy))
org.sonar.api.utils.SonarException: Fail to download: https://bintray.com/artifact/download/sonarsource/SonarQube/org/sonarsource/scm/svn/sonar-scm-svn-plugin/1.2/sonar-scm-svn-plugin-1.2.jar (no proxy)
...
And a lot of lines of StackTrace,
So, When it is trying to reaching the update-center.properties resource there is no problem and it goes through proxy as show the (HTTP proxy: 1.1.2.3:9191) message. But when it is trying to download the packages, it just bypass the proxy (and I don't know why) as show the message (no proxy) in the end of the second and third lines
So my question is, how I have to configure SonarQube for use with proxy?
NOTE: this question is similar to SonarQube Proxy Configuration, Tricky but I think is not the same I can see the plugins and updates list, but can download them, so I think is not duplicate.
The problem was that sonar configuration file allows you to set up http proxy but it has nothing to do with https or ftp, then those update sites with https fail.
So the solution:
Add to sonar.properties
sonar.web.javaAdditionalOpts=-Dhttps.proxyHost=10.1.2.3 -Dhttps.proxyPort=9191 -Dhttps.proxyUser=theuser -Dhttps.proxyPassword=thepassword
We also faced this issue, when we were using IP address of proxy. When I switched to proxy name, it worked fine.
DEBUG web[o.s.a.u.HttpDownloader$BaseHttpDownloader$HttpInputSupplier] Download: http://update.sonarsource.org/update-center.properties (HTTP proxy: www-proxy5.in.my.com:11)
DEBUG web[o.s.a.u.HttpDownloader$BaseHttpDownloader$HttpInputSupplier] Download: http://downloads.sonarsource.com/plugins/org/codehaus/sonar-plugins/python/sonar-python-plugin/1.5/sonar-python-plugin-1.5.jar (HTTP proxy: www-proxy5.in.my.com:11)
Try using a proxy name rather IP address and we were not doing any authentication so left the user/password blank. Please post entire stacktrace if this does not work.

What configuration need to be done in my MAC 10.8.5 to act as ssl enabled ldap client for openldapserver

I configured my openldap 2.4 in Centos . And I have Mac client for it. Now i wanted to enable SSL for secured Ldap connection. I generated self certified certificate and configured my ldap.I followed following Document http://easylinuxtutorials.blogspot.in/2013/11/installing-configuring-openldap-server.html. But in this it is centos client, but my problem is how to configure Mac client. In some google search i found that just enabling SSL option in LDAPv3 of Directory server will do the job for us. But it didnt helped me. please help me in doing some missed configurations.
I solved it myself
Firstly we should edit ldap.conf file ,which is in the path /etc/openldap/ldap.conf of client.
we should add the line
TLS_REQCERT never

SoapUI global proxy testings not taken for test execution

I have created a web test project using the SoapUi GUI (free version). I need a proxy to connect to the Internet. Therefore, I have set the proxy host and port in File->Preferences->Proxy Settings and made sure that it is enabled. I know the proxy settings are correct, because I see the "soapUi Starter Page" properly. But to my surprise, these global proxy settings do not seem to be taken when running the web test case (I just configured a HTTP GET for http://www.google.com), and my request always times out.
I have failed to make it work both with version 4.0.1 and with 4.05 beta 1.
Can anyone help me with this?
Thanks
can you try with http://stackoverflow.com?
It seems soapui doesn't handle redirect right.

Resources