Closed catleeball closed 5 years ago
@houglum Understood! A try / except is a more simple implementation. If we do ever have to deal with other binary key formats and need to distinguish PKCS 12 from them, the old functions are stashed in this gist: https://gist.github.com/catleeball/d69cd73ca545f8cb8f183dad33de9118
Submitted a patch. :)
@houglum Once this is merged, should I point gsutil to the new head of this repo, or wait for us to do a new release in this repo? I'm not sure what the release process is like for gcs-oauth2-boto-plugin
We'll need to do a new release of this package. Once merged, I can take care of doing the release :)
@houglum got it, fixed :)
Just did a release for v2.4 that should include these changes!
When attempting to load a PKCS 12 key in Python 3, io.open would throw an error since it tried to apply UTF-8 text encoding to the key file, which was not a compatible text file.
Changes tested using .p12 key from our pre-release tests.