Merge pull request #1883 from reaperhulk/fix-1866

add support for equality testing to x509.Certificate