Add localhost to DNSNames in generated certificate.