Access an Web Service from a SSL enabled Website

If you want to access an web service from a website which is SSL enabled (used HTTPS), you have to download SSL certificate from the SSL enabled website and install that on the application server.
Here I have written procedure to download the SSL certificate from Mozilla Firefox and Internet Explorer and Google Chrome.

N.B:You can download the certificate from the website through any browser, and after installing that on the server,it will work for every browser. So no need to download separately from all browser.

Steps for downloading certificate through Mozilla Firefox

1.Browse to the SSL enabled website (from which you want to get certificate).

2 Click the lock icon present in the bottom right corner of browser window (or click the Site Identity Button → more information). It will open a window. 3.Click the Security icon in the window. 4.Click on the View Certificate Button. It will open another window.

5.Click Details tab.

6.Click Export Button. It will download a .com extension file. Then change the extension from .com to .cer. Save it in your disk. 7.Go to location where you saved the certificate(.cer file).Copy the CER file into “C:\ColdFusion9\runtime\jre\lib\security” (or whichever JRE ColdFusion is using). 8.Go to command prompt and go to the path “C:\ColdFusion9\runtime\jre\lib\security”.Then run the following command. keytool -import -keystore cacerts -alias -file .cer 9.Enter keystore password: changeit (It is the default password and it will not be visible when you will write the password).Press Enter

10.Type Yes in as Trust this certificate? [no]: yes. Press Enter.

For example

C:\ColdFusion9\runtime\jre\lib\security>keytool -import -keystore cacerts -alias patagonia -file oiax.patagonia.cer
Enter keystore password: changeit

………………………………………………

……………………………………………..

Trust this certificate? [no]: yes
Then Message will be displayed as “Certificate was added to keystore”.

N.B:If you are getting error with keytoool, e.g “‘Keytool’ is not recognized as an internal or external command”,

then please note keytool is present at location “C:\ColdFusion9\runtime\jre\bin” .

Provide path to keytool.It will work fine.

11. Restart the ColdFusion server.

Steps for downloading certificate through Internet Explorer:

1.Browse to the SSL enabled website (from which you want to get certificate)

2.Click lock symbol present in the right of the browser address bar, click view certificates.

(or Right-click on the page->Properties->click certificate button.)

It will open a window.

3.Click Details Tab. Click Copy to File button. Click Next.

4.Choose Base-64 option. Click Next.

5.Click Browse button. Specify a file name in a location in disk. Click Save. Click Next

Click Finish. Then Message will be displayed as “The Export was successful”.

Then please follow the above steps from 7 to 11 written for Mozilla Firefox.

Steps for downloading certificate through Google Chrome:

1.Browse to the SSL enabled website (from which you want to get certificate).

2.Click the Site Identity Button with lock symbol (or Right-click on the page. Click View Page Info). Click certificate information. It will open a window.

3.Click Details Tab. Click Copy to File button. Click Next.

4.Choose Base-64 option. Click Next.

5.Click Browse button. Specify a file name in a location in disk. Click Save. Click Next

Click Finish. Then Message will be displayed as “The Export was successful”.

Then please follow the above steps from 7 to 11 written for Mozilla Firefox.

150 150 Burnignorance | Where Minds Meet And Sparks Fly!