Posts

Showing posts from May, 2014

Implement SSL on Java

In order to implement SSL on server we need to do the following: 1. Generate a private key using Keytool. Here is the sample command for keytool keytool -genkey -alias tomcat -keyalg RSA -keystore keystore.jks This will ask several questions. The first question is what is your name and the answer must be the fully qualified name of the domain. For example, if the domain is reveim.com, the name should be reveim.com. If all other information is provided and a password is set, this will generate a file named keystore.jks and store a private-public key pair in this file. The alias name is important and  can be any word. This alias name will be required during certificating signing process. The generate keystore.jks file is called the self-signed certificate. This can be used with custom clients. But if the client is a browser, self signed certificate should not be used because user will see a warning message for their first visit. For production use, we need to

Hosting a Git Server

I've been searching for the last couple of days to find which software is best for hosting own git server like github , bitbucket or gitlab . I've found some solution and I'm going to share it will everyone. GitLab Another great software is GitLab. Most probably, this is the best of all choices. Installing it on Ubuntu is very easy and straightforward as they provide a deb package file. But installing from source is a long, complex process. Moreover you may face some trouble regarding dependency of other packages. GitLab can be downloaded for free from here . RhodeCode RhodeCode is another solution which is written in python. It also provides a nice installer script which will guide you through the installation process.  Gogs Gogs  is the very new solution written in Go language. It has a nice UI and is very easy to setup.  Bitbucket If you are interested to pay some money, choose the Bitbucket . Price is not high and you'll get all the awesome feat