Cette page n'est pas encore disponible dans votre langue. Nous nous efforçons d'ajouter d'autres langues. Nous vous remercions de votre compréhension.

On this page

Show all

Help Center/ Distributed Message Service for RabbitMQ/ FAQs/ Connections/ What Should I Do If I Fail to Access a RabbitMQ Instance with SSL Encryption?

What Should I Do If I Fail to Access a RabbitMQ Instance with SSL Encryption?

Updated on 2024-11-27 GMT+08:00

1. Check the inbound rule of the security group. You must allow access using port 5671 (with SSL encryption) or 5672 (without SSL encryption).

2. Configure one-way SSL authentication as follows:

1
2
3
4
5
6
7
8
        ConnectionFactory factory = new ConnectionFactory();
        factory.setHost(host);
        factory.setPort(port);
        factory.setUsername(user);
        factory.setPassword(password);
        factory.useSslProtocol();
        Connection connection = factory.newConnection();
        Channel channel = connection.createChannel();
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback