Add method for extracting public key, type and size from x509 objects