Mañana a la hora de comer estaré, espero, rumbo a Cádiz con estas dos:
Estoy haciendo un poco de investigación para ver los sitios más molones de la zona. Pretendo hacer un poquito de surf también, así que espero poder mostraros muchas cosas nuevas del sur. Cheers!
Listening to: Ben Howard – Three Tree Town
Los viajes tienen un poder mágico sobre el tiempo y la razón al obligarte a romper con las costumbres y los miedos
jueves, 21 de marzo de 2013
viernes, 15 de marzo de 2013
Perfect Holiday
Right now, I'd love to be in any sunny beach where I could surf some waves. I'm no good, but improvement is always needed.
I hope you like this video. Very inspiring.
Quive it, get Quived!
www.quived.com
Quive it, get Quived!
www.quived.com
jueves, 14 de febrero de 2013
Setting SSL in Tomcat with Java apps
Good afternoon, at least in Spain. Today we are going to learn how to
set up SSL security on a Apache Tomcat server running our Java, or
similar, app.
First of all, we must create a Keystore file using Java. Go to your JDK folder: cd $JAVA_HOME/bin. Now, create the keystore file: keytool -genkey -alias tomcat -keyalg RSA -keystore. Bare in mind that the password for the keystore must be the same as the key password. This is a tomcat limitation that I didn’t find anywhere. Took me a whole morning to find out. If everything is correct, you should have the .keystore file in the folder you where in (JDK/bin). The next step is to copy this .keystore file wherever you want it to be.
There is a possibility to change the password for the key file using the following command: keystore -keypasswd -alias tomcat -keystore
Now, let’s move on. Open your server.xml file. Inside the conf folder, in $CATALINA_HOME. You have to declare a new Connector:
Our last step to follow is to configure the web.xml file for our app. Then we will be able to run SSL. It should be inside your webapps/appFolder folder. Insert the following lines after declaration.
securedapp
/*
CONFIDENTIAL
If you want to quit SSL, just change CONFIDENTIAL to NONE, so you don’t have to delete all the code written. Hope you found it interesting.
Resources:
Resource 1
Resource 2
First of all, we must create a Keystore file using Java. Go to your JDK folder: cd $JAVA_HOME/bin. Now, create the keystore file: keytool -genkey -alias tomcat -keyalg RSA -keystore. Bare in mind that the password for the keystore must be the same as the key password. This is a tomcat limitation that I didn’t find anywhere. Took me a whole morning to find out. If everything is correct, you should have the .keystore file in the folder you where in (JDK/bin). The next step is to copy this .keystore file wherever you want it to be.
There is a possibility to change the password for the key file using the following command: keystore -keypasswd -alias tomcat -keystore
Now, let’s move on. Open your server.xml file. Inside the conf folder, in $CATALINA_HOME. You have to declare a new Connector:
Our last step to follow is to configure the web.xml file for our app. Then we will be able to run SSL. It should be inside your webapps/appFolder folder. Insert the following lines after
If you want to quit SSL, just change CONFIDENTIAL to NONE, so you don’t have to delete all the code written. Hope you found it interesting.
Resources:
Resource 1
Resource 2
Suscribirse a:
Entradas (Atom)
