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:25:38 +0100
  • Ironport-sdr: 8+ftjmYZbggtZhBWcL3nx4PlrLYoZEassOtZVfropK/1t+i4mUbR4DgJTDVwof0iHjU+j3/a5C L50FodzXLmvw==

Sorry, A slight error has crept in. I meant bytes().

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



Am 14.01.20 um 10:21 schrieb Robert Grätz:
> 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