1 2 3 4 5 6 7 8 9 10
#!/usr/bin/python import botan key = botan.X509_PublicKey("rsapub.pem") print key print key.key_id() print key.max_input_bits print key.algo print key.oid