0
je peux obtenir la clé privée (format PEM), mais je ne suis pas sûr de savoir comment générer la clé publique:Comment générer des clés publiques et privées avec pyOpenSSL?
from OpenSSL import crypto, SSL
key = crypto.PKey()
key.generate_key(crypto.TYPE_RSA, 1024)
priv_key = crypto.dump_privatekey(crypto.FILETYPE_PEM, key)
pub_key = ... ?