client: Fix for non buffer RSA priv key when siging encapsulated payloads