Basic logging of issues in certificates.

Added reporting some of issues with certificates (around line 451 in monitor.py is readable list of everything I'm looking for). Currently it only prints out list of problems in each certificate and then stats (how many certificates have given error).
I'll add some tests soon, I just want to make sure that code looks reasonable before I write them.
On Wed Nov 12 2014 at 10:26:40 AM Eran Messeri <notifications@github.com>
wrote:

> In python/ct/client/monitor.py:
>
> > +            RSA_SHA1 = Issue("Signature algorithm: uses sha-1WithRSAEncryption")
> > +            DSA_SHA1 = Issue("Signature algorithm: uses id-dsa-with-sha1")
> > +            ECDSA_SHA1 = Issue("Signature algorithm: uses ecdsa-with-SHA1")
> > +
> > +        class IPAddress(object):
> > +            IPV6 = Issue("IPAdress: IPv6")
> > +            PRIVATE = Issue("IPAdress: IP address in IANA-reserved private "
> > +                            "range")
> > +            CORRUPT = Issue("IPAdress: corrupt extension")
> > +
> > +        class BC(object):
> > +            TRUE = Issue("Basic constraints: CA is TRUE")
> > +            CORRUPT_OR_MULTIPLE = Issue("Basic constraint: multiple extensions "
> > +                                        "or corrupt")
> > +
> > +    EMAIL_REGEX = re.compile("[^@]+@[^@]+\.[^@]+")
>
> There are many pitfalls with trying to match an email using a regex. I
> suggest looking for a package that identifies email addresses for you or
> simply look for '@'.
>

https://docs.python.org/2/library/email.util.html

:-)


> —
> Reply to this email directly or view it on GitHub
> <https://github.com/google/certificate-transparency/pull/233/files#r20211150>
> .
>