javax.net.ssl.SSLHandshakeException using Jasperreport Studio instead of iReport

Hi all,

I hope, you could help me.

I want to use JasperSoft Studio 5.6.2 instead of iReport which I currently use.

Jasperserver is 5.5.0 Professional.

 

With iReport I can connect to the server with the following properties without any problems:

ID:        Jasper-Server 5.5 - 01_ORGANIZATION_NAME

Server-URL:    https://<IP-address>/jasperserver/services/repository

Organization:    ORGANIZATION_NAME

        username & password

In Jaspersoft-Studio I use the same connection-parameters and get a javax.net.ssl.SSLHandshakeException

Could anybody explain me, how to install the nessecary cert files on server and client.

Thank you in advance.

Regards

Martin

renssak's picture
100
Joined: Oct 14 2013 - 10:51pm
Last seen: 2 years 10 months ago

4 Answers:

mrabbi's picture
23700
Joined: Oct 31 2011 - 9:20am
Last seen: 1 week 4 days ago

Hi Massimo,

thanks for yor answer, but the links I knew before.

Is it right, that I have to create a keyfile on my local machine and put this file into the Studio on the same machine?

For example I tried to create the key with:

keytool -genkey -alias tomcat -keyalg RSA

and to import it with:

keytool -import -keystore "<jasper_home>\Jaspersoft Studio-5.6.1.final\features\jre.win32.win32.x86_64.feature_1.7.0.u67\jre\lib\security\cacerts" -file c:\Users\username\.keystore

Then I got the reply

Keytool-Error: java.lang.Exception: Input is no X.509-certificate

Or do I have to create the key on my local machine and import it on the jasper-server?

 

Regards

 

Martin

 

renssak's picture
100
Joined: Oct 14 2013 - 10:51pm
Last seen: 2 years 10 months ago

After I got the right server-certificate it runs with the following command on my windows workstation:

"<jasper_home>\Jaspersoft Studio-5.6.1.final\features\jre.win32.win32.x86_64.feature_1.7.0.u67\jre\bin\keytool" -import -keystore "<jasper_home>\Jaspersoft Studio-5.6.1.final\features\jre.win32.win32.x86_64.feature_1.7.0.u67\jre\lib\security\cacerts" -alias JaspersoftStudio -file "<jasper_home>\Jaspersoft Studio-5.6.1.final\certifckate\<cert-name>.crt" -storepass changeit

Regards

Martin

renssak's picture
100
Joined: Oct 14 2013 - 10:51pm
Last seen: 2 years 10 months ago

I had this issue and it was resolved more easily than the above solutions:

  1. Close Studio.
  2. Find the 'Jaspersoft Studio Professional.ini' file which should be found in the folder where Studio was installed.
  3. Add the following line at the bottom of the 'Jaspersoft Studio Professional.ini' file:

 -Djsse.enableSNIExtension=false

 

alison.oxton's picture
Joined: Jan 24 2013 - 2:19pm
Last seen: 7 years 5 months ago
Feedback