Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
h1. ¿Cómo conectase al portal con SSL (https)?


h3. {color:#ff0000}{*}IMPORTANTE{*}{color}\* \*

    Bajar el servidor Jboss

h2.  Procedimiento 

# ir a la carpeta O3_install_dir/jboss/server/default/deploy
# buscar el archivo server.xml
# en el archivo buscar el tag
<Connector port="8080" address="$\{jboss.bind.address}"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;         maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;         emptySessionPath="true"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;         enableLookups="false" redirectPort="8443" acceptCount="100"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;         connectionTimeout="20000" disableUploadTimeout="true"/>
# comentar el tag
<\!-\-
<Connector port="8080" address="${jboss.bind.address}"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;         maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;         emptySessionPath="true"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;         enableLookups="false" redirectPort="8443" acceptCount="100"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;         connectionTimeout="20000" disableUploadTimeout="true"/> \-->
# buscar el tag
<\!-\- <Connector port="8443" address="$\{jboss.bind.address}"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           emptySessionPath="true"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           scheme="https" secure="true" clientAuth="false"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           keystoreFile="${jboss.server.home.dir}/conf/llave_1.keystore"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           keystorePass="rmi+ssl" sslProtocol = "TLS" /> \-->
# descomentarlo
<Connector port="8443" address="${jboss.bind.address}"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
           maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           emptySessionPath="true"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           scheme="https" secure="true" clientAuth="false"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           keystoreFile="$\{jboss.server.home.dir}/conf/*nombre_llave.keystore*"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
           keystorePass="rmi+ssl" sslProtocol = "TLS" />
# *nombre_llave.keystore* es el nombre que nostros le daremos al archivo de llaves
# en la consola escribir

para WINDOWS
%JAVA_HOME%\bin\keytool \-genkey \-alias tomcat \-keyalg RSA \-keystore O3_install_dir\jboss\server\default\conf\{*}nombre_llave.keystore\*

para \*NIX
$JAVA_HOME/bin/keytool \-genkey \-alias tomcat \-keyalg RSA \-keystore O3_install_dir/jboss/server/default/conf/*nombre_llave.keystore*
# la primer clave que nos pregunta debe de contastarse *rmi+ssl* , luego se llenan los datos como corresonda
# la última clave que nos pide le contestamos con return
# reiniciar el jboss