from Crypto.PublicKey import RSA
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA
from base64 import b64decode
def wesocket_Data_Receive(request):
Data=request.GET.get('ContentData')
key =open('D:\\WithOldDjango\\AssetManagment\\AssetManagment
\\blog\\templates\\private.key', 'rb')
rsakey = RSA.importKey(key.read())
return HttpResponse(Data)
I am getting the following error while reading the private key using python 3.5 error:"RSA key format is not supported" above is my code