This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make my browser trust my server certificate?

 
Yogesh Gandhi
Ranch Hand
Posts: 222
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made my TOMCAT run on https using http://www.mkyong.com/tomcat/how-to-configure-tomcat-to-support-ssl-or-https/

When I open https://localhost:8443/, it gives me a red colored page warning me, that the server certificate is not trusted by google chrome (that was expected).

Now, I want to make my google chrome trust the server certificate. I generated mkyong.cer file using keytool -export command

and then I tried to import it in client's trust store as follows.

(clientTrustStore.key is the output file, and mkyong.cer is the input file.)

I took reference of http://db.apache.org/derby/docs/dev/adminguide/cadminsslkeys.html for import command.

C:\>keytool -import -alias mkyong -file mkyong.cer -keystore clientTrustStore.key
Enter keystore password:
Re-enter new password:
Owner: CN=yong mook kim, OU=CDG, O=NSEL, L=NOIDA, ST=UP, C=IN
Issuer: CN=yong mook kim, OU=CDG, O=NSEL, L=NOIDA, ST=UP, C=IN
Serial number: 4f89351e
Valid from: Sat Apr 14 13:58:14 IST 2012 until: Fri Jul 13 13:58:14 IST 2012
Certificate fingerprints:
MD5: 3C:5F:CC:34:2B:BE:F3:18:67:3A:64:5B:FE:28:A3:C4
SHA1: DB:B0:45:21:5C:2E:1A:50:1A:84:F1:EE:12:47:40:71:9F:3DF:6B
Signature algorithm name: SHA1withRSA
Version: 3
Trust this certificate? [no]: yes
Certificate was added to keystore




Even after this, I am still getting that warning when i open https://localhost:8443/

Can someone please explain this behavior, or if I am doing something wrong?
 
Paul Clapham
Sheriff
Pie
Posts: 20177
25
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's the first link I got when I googled your question: http://groups.google.com/a/googleproductforums.com/forum/#!topic/chrome/1b7V3cs7BS4. It appears to me that the answer given there is "Use Internet Explorer to make it trusted and then Chrome will automatically trust it", but you can read the whole thread which does contain more information than just that.
 
Yogesh Gandhi
Ranch Hand
Posts: 222
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Paul for taking out some time and answering.

I have researched on net and studied something about this.

I have created one post from my understanding and observation.

Might help someone

Here you go :

http://javakafunda.blogspot.in/2012/04/how-to-make-my-browser-trust-my-server.html
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic