-
Notifications
You must be signed in to change notification settings - Fork 430
Adding protected method to convert PKCS12 key to PEM. #115
Conversation
d89836d
to
fcff4dc
Compare
+1, i'd rather see it as a separate function (which i suspect could be used elsewhere). |
fcff4dc
to
bb2e770
Compare
@craigcitro I factored out and made it public in
|
|
OpenSSL is a conditional dependency, that's the whole point of crypt.py (graceful degradation). If I tear our the PEM part, then I can define this conditionally as OpenSSLVerifier and OpenSSLSigner are done. (I have talked myself out of the ImportError.) |
wfm |
@craigcitro PTAL |
Also only defining if OpenSSL is installed and conditionally defining a method which raises NotImplementedError if not defined.
4889315
to
4d02099
Compare
|
||
|
||
def datafile(filename): | ||
f = open(os.path.join(os.path.dirname(__file__), 'data', filename), 'rb') |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Adding protected method to convert PKCS12 key to PEM.
Thanks Craig! In the interest of closing googleapis/google-cloud-python#537, when do you think a new release will be cut? |
i should be able to cut a release tomorrow. |
actually, let's make that friday -- so that i can be teaching two other folks to do it at the same time. |
new release is out! |
Thanks! I noticed: googleapis/google-cloud-python#559 |
@craigcitro LMK if you think this should be a standalone function (possibly in
crypt.py
) instead of a protected method onSignedJwtAssertionCredentials
.