playframework/Play20 — pull request #339 by bblfish (2012-05-28 14:27:43+00:00)
Title: TLS in dev mode & FakeKeyStore cert CN=localhost

It is useful to be able to run TLS in dev mode. This patch allows this to be done from the shell with

> run -Dhttps.port=8443

The FakeKeyStore's certificate has been changed to one whose CN (Common Name) is localhost.
This is because browsers and other clients tend to look at the CN to see if they have reached the right server. It would be nice of course if one of the well known CA's signed an open localhost server, which could
then be used here usefully for test suites. (but that would be probably quite a lot of work to get them to do this)

Still CN=localhost is one less problem for clients. Apache's http client needs to be set up to ignore those errors in addition to ignoring certificates that might not be signed by well known CAs.