Server Fault is a question and answer site for system and network administrators. 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

Is there anywhere that I can get a valid , signed, SSL cert to the "localhost" domain for testing? Does anyone anywhere offer a download of something like this that I can use in testing? I know how to use openssl to sign a key with a CA, but there are a lot of steps involved and I am hoping there is something quick and easy.

What I want is a canned test CA that I can import into my trusted CA stores and then a accompanying jks keystore that has the cert chain in it for that CA.

So, it would be a 3 step process, within a protected sandbox :

   1.  Get a new distro of Jetty, enable the SSL connector, point it to 
       the localhost.jks keystore
   2.  Import the CA that signed the localhost cert in the localhost.jks 
       into my web browser
   3.  Browse to Tomcat on the SSL port , look at the cert and see the 
       cert chain. 
share|improve this question
Why not just use and trust a self-signed? – Shane Madden Oct 21 '11 at 17:06
Write your own shell script to do it, for e.g: – quanta Oct 21 '11 at 17:07
@Shane Madden - since i test all the time with different JVMs and different browsers, i'd rather not have to import the trusted certificate over and over again all the time. the utopian idea would be to have a cert that belongs to one of the pre-trusted CAs. – djangofan Oct 21 '11 at 17:20
up vote 3 down vote accepted

I have a really hard time believing that exists, since it's against the nature of SSL.

The CA's that are in your root-certificate list are companies who we've given our trust to. Their job is to verify that the ones who own the certificate are the ones they claim to be. Giving a localhost-certificate to anyone like this, would break this concept. Even for testing.

share|improve this answer
Thats what I suspect also, but still hoping for a hail-mary answer. Otherwise I am going to have to take the time to create a script, setup openssl, get it all working, etc. – djangofan Oct 21 '11 at 17:21
It's not that big of a job, you just have to create a self-signed certificate, which is the same thing minus the verification process + creating the ca certificates ... and then also import that ca-certificate to your list of trusted ca's. – Kvisle Oct 21 '11 at 17:25
It sounds like you might give our current "trusted" CA:s a bit more credit than they deserve - – andol Oct 21 '11 at 19:53
@andol My claim isn't that the concept is perfect. My claim is that the concept is what it is. SSL is a broken system, and you have to be aware that trusting the identities of the SSL-certificates mean trusting the Certificate Authority. I don't say they can be trusted. However, if one want to create spoofed certificates - phishing localhost isn't the most interesting target. – Kvisle Oct 21 '11 at 20:14
This actually exists, see – likeitlikeit May 6 '13 at 15:40

The cert seems to be no longer available, but see It's not a wildcard cert though.

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.