Fix for certificateCloudCredentials to accept the pem as buffer or string