def get_privatekey(keydata):
key = serialization.load_pem_private_key(<EOL>keydata,<EOL>password=None,<EOL>backend=default_backend(),<EOL>)<EOL>return key<EOL>
Load the private key from a PEM encoded string.