amqp-simple-pub-sub icon indicating copy to clipboard operation
amqp-simple-pub-sub copied to clipboard

How to configure 2 way ssl

Open jasonhue8183 opened this issue 5 years ago • 1 comments

Hi,

How to configure 2 way SSL reference to local keystore.jks and truststore.jks ?

Appreciate for any advice Jason

jasonhue8183 avatar Jun 12 '19 06:06 jasonhue8183

Right now you can't as I don't pass through any ssl options to amqplib but I could fix that.

You would have to get the keys from the java keystores (see https://security.stackexchange.com/questions/3779/how-can-i-export-my-private-key-from-a-java-keytool-keystore/66865#66865 for example)

From there I would need to modify my code slightly to allow you pass in ssl options as per https://www.squaremobius.net/amqp.node/ssl.html

Does that help you? If so then I am happy to modify the code to suit.

davesag avatar Jun 12 '19 10:06 davesag