Add a test for X509.get_extension and fix its error behavior
2 files changed