Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I created a .crt certificate for Apache, however I could only import it to my java cacerts with the hostname I generated it with. This is for testing only and is self signed. I have both a hostname (local internal to network) and a public IP.

My question is, how can I generate a .crt file that would serve both my local host-name and my public IP (no public domain name)? Can it be ignorant of the domain?

(It's just for SSL test purposes) I need to access both from public IP and local internal host-name... (another IP).

I saw this How to easily create a SSL certificate and configure it in Apache2 in Mac OS X?

But this question and answer did not help me...

share|improve this question
up vote 1 down vote accepted

An SSL certificate will provides security based on domain name. See the answer posted here.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.