Japser server http to https - How to secure Jasper Server ?


Dear Team,

What are the steps to follow to make jasper server URL
from http://localhost:8080/jasperserver-pro
to https://localhost:8080/jasperserver-pro

What is keystroke file & how to generate it & make it work with Jasper server to make it secure ?

Thanks in Advance.

Sadakar
BI developer

sadakar's picture
5163
Joined: Aug 14 2012 - 3:57am
Last seen: 1 week 6 days ago

3 Answers:

It's not a jasperserver problem, but a tomcat setting.

Example on Windows and tomcat 6:

Edit server.xlm (ex. Program Files\jasperreports-server-pro\apache-tomcat\conf\server.xml)
and uncomment or insert


    <!-- Define a SSL HTTP/1.1 Connector on port 8443 -->

    <Connector protocol="org.apache.coyote.http11.Http11Protocol"
               port="8443" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />

(8443 is the port for SSL; I don't think you can use 8080 if it's used as normal HHTP port)


set the tomcat service to be started using a defined user.

exec keytool.exe -genkey -alias tomcat -keyalg RSA (ex. Program Files\Java\jre6\bin\keytool.exe)

using "changeit" as password


this will create a .keystore file that you must copy in home directory of the user starting the tomcat service (ex. Documents and Settings\tomcat)

restart tomcat service

sbced's picture
275
Joined: Sep 16 2010 - 11:05pm
Last seen: 4 years 10 months ago

Thank you.

How to do it in Cent OS or linux for the last point ?
(this will create a .keystore file that you must copy in home directory of the user starting the tomcat service (ex. Documents and Settings\tomcat))

home directory of tomcat ?? Is it not the home of jasper tomcat where we can find startup.bat file ? Or should it be Documents and Settings\tomcat ?

Thank you.

sadakar - 9 years 3 months ago

In linux, I think you can copy .keystore in root home, as probably you will start tomcat server as root

sbced's picture
275
Joined: Sep 16 2010 - 11:05pm
Last seen: 4 years 10 months ago

http means transfer user requests & server responses (resources) over the internet.

https do same things as http does and additionally, it applies encryption on data that is being transmitted over insecure internet.

Thank You & Regards
Jasper BI Engineer.

 

arif3hosain's picture
Joined: Apr 26 2015 - 11:59am
Last seen: 1 year 3 weeks ago
Feedback
randomness