1 year ago

#369196

test-img

marius

node.js fix error: SSL routines:ssl3_get_record:wrong version number

I am trying to connect to an IMAP server, but using different packages I always get this error:

Error: 139844877236160:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:

I have the feeling that this is due to some nodejs configuration. I am running nodejs with the latest version in docker from https://hub.docker.com/_/node .

How can I change the ssl3 version number?

const Imap = require("imap");
onst imap = new Imap({
  user: "xx",
  password: "xx",
  host: "imap.ionos.com",
  port: 993,
  tls: true,
  authTimeout: 3000,
});

imap.once("error", function (err) {
  console.log(err);
});

imap.once("end", function () {
  console.log("Connection ended");
});

imap.connect();

node.js

docker

imap

0 Answers

Your Answer

Accepted video resources