Create an x509 certificate object and test for it.