Correct a typo.
This commit is contained in:
@@ -235,7 +235,7 @@ try:
|
|||||||
pkey = RSA.importKey(parsed_pem_key)
|
pkey = RSA.importKey(parsed_pem_key)
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError(
|
raise NotImplementedError(
|
||||||
'PKCS12 format is not supported by the PyCrpto library. '
|
'PKCS12 format is not supported by the PyCrypto library. '
|
||||||
'Try converting to a "PEM" '
|
'Try converting to a "PEM" '
|
||||||
'(openssl pkcs12 -in xxxxx.p12 -nodes -nocerts > privatekey.pem) '
|
'(openssl pkcs12 -in xxxxx.p12 -nodes -nocerts > privatekey.pem) '
|
||||||
'or using PyOpenSSL if native code is an option.')
|
'or using PyOpenSSL if native code is an option.')
|
||||||
@@ -259,13 +259,13 @@ else:
|
|||||||
|
|
||||||
def _parse_pem_key(raw_key_input):
|
def _parse_pem_key(raw_key_input):
|
||||||
"""Identify and extract PEM keys.
|
"""Identify and extract PEM keys.
|
||||||
|
|
||||||
Determines whether the given key is in the format of PEM key, and extracts
|
Determines whether the given key is in the format of PEM key, and extracts
|
||||||
the relevant part of the key if it is.
|
the relevant part of the key if it is.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
raw_key_input: The contents of a private key file (either PEM or PKCS12).
|
raw_key_input: The contents of a private key file (either PEM or PKCS12).
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
string, The actual key if the contents are from a PEM file, or else None.
|
string, The actual key if the contents are from a PEM file, or else None.
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user