Get rid of hard coded bytes for generating PEM from private key
Check for correct client data type on response