from Crypto.PublicKey import ECC
key = ECC.generate(curve='P-256')
f = open('moj_klucz_prywatny.pem','wt')
f.write(key.export_key(format='PEM'))
f.close()
f = open('moj_klucz_prywatny.pem','rt')
key = ECC.import_key(f.read())
print(key)
