File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ def from_string(key, password='notasecret'):
235
235
pkey = RSA .importKey (parsed_pem_key )
236
236
else :
237
237
raise NotImplementedError (
238
- 'PKCS12 format is not supported by the PyCrpto library. '
238
+ 'PKCS12 format is not supported by the PyCrypto library. '
239
239
'Try converting to a "PEM" '
240
240
'(openssl pkcs12 -in xxxxx.p12 -nodes -nocerts > privatekey.pem) '
241
241
'or using PyOpenSSL if native code is an option.' )
@@ -259,13 +259,13 @@ def from_string(key, password='notasecret'):
259
259
260
260
def _parse_pem_key (raw_key_input ):
261
261
"""Identify and extract PEM keys.
262
-
262
+
263
263
Determines whether the given key is in the format of PEM key, and extracts
264
264
the relevant part of the key if it is.
265
-
265
+
266
266
Args:
267
267
raw_key_input: The contents of a private key file (either PEM or PKCS12).
268
-
268
+
269
269
Returns:
270
270
string, The actual key if the contents are from a PEM file, or else None.
271
271
"""
You can’t perform that action at this time.
0 commit comments