Skip to Content.
Sympa Menu

cat-users - Re: [[cat-users]] DeprecationWarning: str for passphrase is no longer accepted, use bytes

cat-users AT lists.geant.org

Subject: The mailing list for users of the eduroam Configuration Assistant Tool (CAT)

List archive

Re: [[cat-users]] DeprecationWarning: str for passphrase is no longer accepted, use bytes


Chronological Thread  
  • From: Robert Grätz <address@concealed>
  • To: address@concealed
  • Subject: Re: [[cat-users]] DeprecationWarning: str for passphrase is no longer accepted, use bytes
  • Date: Tue, 14 Jan 2020 10:21:14 +0100
  • Ironport-sdr: 7c4pdBfw0lQUbiOMXDNxx4Wk1JD8YMBsTH0xL9rDowKoQIuqGo3JE4wBnE1hGtEYIY3E4QM7jw VZxZWV7AvEiQ==

Hello Federico,

could you replace this line:

p12 = crypto.load_pkcs12(open(pfx_file, 'rb').read(),
self.password)

with this line please:

p12 = crypto.load_pkcs12(open(pfx_file, 'rb').read(),
byte(self.password))

Do the warning still exist?

Best regards
Robert


Am 13.01.20 um 16:26 schrieb Federico Leva:
> The latest cat script gives a warning message on a recent python:
>
> $ python eduroam-linux-PdM-polimi-TLS.py
> eduroam-linux-PdM-polimi-TLS.py:514: DeprecationWarning: str for
> passphrase is no longer accepted, use bytes
> self.password)
> $ python --version
> Python 3.7.6
> To unsubscribe, send this message:
> mailto:address@concealed?subject=unsubscribe%20cat-users
> Or use the following link:
> https://lists.geant.org/sympa/sigrequest/cat-users
>

Attachment: signature.asc
Description: OpenPGP digital signature




Archive powered by MHonArc 2.6.19+.

Top of Page