Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: unable to verify the first certificate #82

Open
ramzes13 opened this issue Apr 24, 2019 · 0 comments
Open

ERROR: unable to verify the first certificate #82

ramzes13 opened this issue Apr 24, 2019 · 0 comments

Comments

@ramzes13
Copy link

Hello,
I have had the same problem as here amqp.node #331
After change my code to:

const uri = 'amqp://localhost' // or amqps://.........
const parsedURI = url.parse(uri);

amqp.connect([parsedURI], { servername: parsedURI.hostname })

I could make the connection.

At the moment I need to use Auto-reconnect and round robin support for amqplib.

I tried:

  const parsedURI = url.parse(credentials.uri_direct_1);
  const connectionOptions = { servername: parsedURI.hostname };
  const parsedURI2 = url.parse(credentials.uri);

  const connection = amqp.connect([parsedURI, parsedURI2], { connectionOptions });

With this config app is also conecting to the server.
I'm worried that in configuration there are 2 urls parsedURI, parsedURI2, But in connectionOptions are set only servername from one Url.

How can this problem be solved correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant