Solved

Question about setting up SSL certificate

Posted on 2012-12-29
1
418 Views
Last Modified: 2012-12-29
I have an ssl certificate for a domain (let's say www.blap.com) and I want to try to set it up on a tomcat instance on an local server for testing purposes. Can I trick tomcat and the browser into accepting the ssl certificate by adding www.blap.com to the hosts file on the local server?
0
Comment
Question by:opike
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 33

Accepted Solution

by:
Dave Howe earned 500 total points
ID: 38729640
If you have *any* ssl certificate, then tomcat will accept that without any further adjustment - so the server side is fine. Importing the key into the tomcat JKS file (or if you are fronting tomcat via apache, supplying the pem encoded files for apache) is a different question of course, but plenty of web references for that.

To avoid any browser side warnings though, you must have set the IP of the server in your hosts file *on the client* and further, must have accessed the tomcat server via that dns name not via its IP (alternatively, you must arrange for the DNS supplied to the client to give that IP in response to that domain; sometimes easier to do if you control the local environment)
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Smart phones, smart watches, Bluetooth-connected devices—the IoT is all around us. In this article, we take a look at the security implications of our highly connected world.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question