noodlefrenzy / node-amqp10

amqp10 is a promise-based, AMQP 1.0 compliant node.js client
MIT License
134 stars 56 forks source link

How to set trust store path / certificate (*.pem) file for AMQPS #361

Closed gbeister closed 6 years ago

gbeister commented 6 years ago

Hi, I'm trying to get information of how to specify a *.pem file as certificate when creating a consumer. Also where would I need to setup a basic authentification user:password? Would this be part of the amqps-url?

Thanks a lot in advance.

gbeister commented 6 years ago

Please see also my comment to an already closed issue related to this topic:

gbeister commented 6 years ago

Hi, I found the answer by myself (this issue can be closed): Solution: var client = new AMQPClient(Policy.merge(Policy.QpidJava,{ connect: { options:{ sslOptions: { caFile: "path to *.pem" file" } } } }));