Extract a public key from certificate
Extract a public key from certificate Question: I’m trying to extract a public key from my certificate but i keep getting this error: ValueError: RSA key format is not supported.. Below is my code: from Crypto.PublicKey import RSA bob_crt = ‘bob.crt’ public_key = RSA.import_key(bob_crt) if isinstance(public_key, RSA.RsaKey): print("RSA public key") else: print("Other key") —–BEGIN CERTIFICATE—– …