Install SSL Certificate


ADSelfService Plus runs as a HTTPS service. It requires a valid CA-signed SSL certificate with the principal name as the name of the host on which it runs. By default, on first time startup, it creates a self signed certificate. This self signed certificate will not be trusted by the user browsers. Thus, while connecting to ADSelfService Plus, you need to manually verify the certificate information and the hostname of ADSelfService Plus server carefully and should force the browser to accept the certificate.

 
To make the ADSelfService Plus server identify itself correctly to the web browser and the user:

You can use keytool (bundled with Java) to create your certificates, get them signed by a CA and use them with ADSelfService Plus. Detailed instructions on using keytool is provided here.

 

  • Step 1: Startup Process

  • Step 2: Certificate Request Process

  • Step 3: Certificate Issuance Process

  • Step 4: Associating the Certificate with ADSelfService Plus

  •  

    Step 1: Startup Process :

     

    This is the initial settings to be made in ADSelfService Plus before applying for an SSL Certificate.

    Step 2: Certificate Request Process :

     

    Before requesting for a certificate from any certifying authority one needs to Create tomcat specific ".keystore" file and ".csr" file, which will be further referred as <domainName>.keystore and <domainName>.csr respectively.

     

    The <domainname>.keystore and <domainName>.csr will include information provided by the individual who creates the .keystore and .csr files.

     

    To create the .keystore file follow the below steps

     

     keytool -genkey -alias tomcat -keypass <your key password> -keyalg RSA -validity 1000 -keystore <domainName>.keystore                   

    Note: At the end of executing the above command, you will be prompted to enter keystore password. Try giving the password same as your key password.

     

    To create the .csr (Certificate Signing Request)  file follow the below steps

    The .csr (Certificate Signing Request) file is temporary and will need to be submitted to a CA (Certifying Authority) to receive CA-Signed Certificate files.
     

    Step 3: Certificate Issuance Process :

     

    The third steps talks about the Certificate Issuance Process where the temporary files created are submitted to certifying authority to receive a CA-Signed Certificate.

    1. Some of the prominent CAs are Verisign (http://verisign.com), GoDaddy (http://www.godaddy.com/), Comodo (http://www.comodo.com). Check their documentation / website for details on submitting CSRs and this will involve a cost to be paid to the CA

    2. Submit the created temporary file <domainName>.csr file to the Certificate Authority (CA), to receive  <domainName>.crt or <domainName>.cer file along with other certificate files in a zipped format.

    3. This process usually takes a few days time and you will be returned your signed SSL certificate and the CA's root certificate as .cer files

    Once the CA-Signed Certificate is received from the Certifying Authority (CA)

    Note:  Each time you install a certificate to your keystore you will be prompted for the keystore password, which you chose when generating your CSR.

    The certificate files will vary, based on your choice of CA.

     

    For instance if your CA is "GoDaddy", then the steps to follow will be :

    Execute the following commands from <installation directory> \ jre \ bin

     

    keytool -import -alias root -keystore <domainName>.keystore -trustcacerts -file gd_bundle.crt

    keytool -import -alias cross -keystore <domainName>.keystore -trustcacerts -file gd_cross_intermediate.crt

    keytool -import -alias intermed -keystore <domainName>.keystore -trustcacerts -file gd_intermediate.crt

    keytool -import -alias tomcat -keystore <domainName>.keystore -trustcacerts -file <domainName>.crt

     

    For instance if your CA is "Verisign", then the steps to follow will be :

    Execute the following commands from <installation directory> \ jre \ bin

     

    keytool -import -alias intermediateCA -keystore <domainName>.keystore -trustcacerts -file <your_intermediate_certificate>.cer

    keytool -import -alias tomcat -keystore <domainName>.keystore -trustcacerts -file <domainName>.cer

     

    For instance if your CA is "Comodo", then the steps to follow will be :

    Execute the following commands from <installation directory> \ jre \ bin

     

    keytool -import -trustcacerts -alias root -file AddTrustExternalCARoot.crt -keystore <domainName>.keystore

    keytool -import -trustcacerts -alias addtrust -file UTNAddTrustServerCA.crt -keystore <domainName>.keystore

    keytool -import -trustcacerts -alias ComodoUTNServer -file ComodoUTNServerCA.crt -keystore <domainName>.keystore

    keytool -import -trustcacerts -alias essentialSSL -file essentialSSLCA.crt -keystore <domainName>.keystore

    keytool -import -trustcacerts -alias tomcat -file <domainName>.crt -keystore <domainName>.keystore

     

     

    Step 4: Associating the Certificate with ADSelfService Plus :

     

    This will configure the ADSelfService Plus server to use the keystore with your SSL certificate.

     

    To configure ADSelfService Plus server to use the keystore with your SSL certificate follow the below steps.

     If you are able to view the ADSelfService Plus login console without any warning from the browser, you have successfully installed your SSL certificate in ADSelfService Plus!

     

     

    Copyright © 2009., ZOHO Corp. All Rights Reserved.