External task js problem to pool https urls

I use external camunda-external-task-client-js to setup a service task for deployed camunda tomcat with ssh setup.
get error : * polling failed with RequestError: unable to verify the first certificate
tanks.

import {
  Client,
  logger,
  BasicAuthInterceptor,
  Variables,
  File,
} from "camunda-external-task-client-js";

const basicAuthentication = new BasicAuthInterceptor({
  username: "username",
  password: "password",
});

const client = new Client({
  baseUrl: "https://xxx/engine-rest",
  interceptors: basicAuthentication,
  use:logger
});

client.subscribe("topic-name", async function ({ task, taskService }) {

}

but i get this error in console :

  • polling failed with RequestError: unable to verify the first certificate
    tanks.

Try use ssl interceptor in worker procedure, with registering self signed root certificate.