Skip to content

PKCS12 deprecation warning from pyOpenSSL

The ciecplib.ui.get_cert function emits a deprecation warning related to pending deprecation of PKCS#12 support in pyOpenSSL:

/home/duncan/git/ciecplib/ciecplib/ui.py:170: DeprecationWarning: PKCS#12 support in pyOpenSSL is deprecated. You should use the APIs in cryptography.
  return crypto.load_pkcs12(

The APIs in cryptography are so complicated they may as well be encrypted themselves. There is also no statement of when support for this will be removed in pyOpenSSL, so I have no idea of the urgency of this warning.