Many services on the internet allow to check SSL Certificates. They display information about certificates and indicate if they are valid and well configured.
JavaScript Injection:
With OpenSSL library, it is easy to create a self-signed SSL Certificate with the information you want. You can thus create and install a fake SSL certificate like this one :
Figure 1 : Fake SSL Screen
This certificate contains XSS injections in several fields. So the question is : what happens if you test this SSL Certificate with online checkers ?
This was tried a few days ago on several of these services, among the most famous :
These tools, which trust data present in certificates issued by SSL authorities, were vulnerable to XSS attacks with a self-signed certificate. They were quickly patched or set into maintenance.