bluelinky: SSL Error for Kia Canada

Describe the bug When running npm debug I’m getting:

debug: write EPROTO 00DE05DC01000000:error:0A000172:SSL routines:tls12_check_peer_sigalg:wrong signature type:ssl/t1_lib.c:1573:

Usefull info(please complete the following information):

  • OS: [e.g. macOS, Windows, Linux] macOS
  • Bluelinky Version [e.g. v5.2.3] (current master branch)
  • Region: [e.g. US, CA, EU] CA
  • Brand: [kia, hyundai] Kia

Additional context Node: 18.16.1 Happy to privately provide login details.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 18 (15 by maintainers)

Most upvoted comments

related got issue https://github.com/sindresorhus/got/issues/2271

We could switch to fetch which has a workaround. However, that’s a considerable amount of work and something is probably bound to break.

import crypto from 'crypto';
import { Agent } from 'undici';

fetch('https://kiaconnect.ca', {
  dispatcher: new Agent({
    connect: {
      rejectUnauthorized: false,
      secureOptions: crypto.constants.SSL_OP_LEGACY_SERVER_CONNECT,
    },
  }),
}).then((res) => console.log(res.status));

If anyone wants to ship a PR 🙏

Woot woot!

Maybe once they update the cert this won’t be an issue like you said 😅.

Closing for now as we have a workaround, thanks for digging into this.