tls connection without verify peer failed #1105
-
Hi I want to test tls connection without verifying Client is php 7.4.33 and Server is Rabbitmq 3.12 both running from docker I'm also testing with python since it will communicate with it later. Using aio-pika, this is work normally $amqpConfig = new AMQPConnectionConfig();
$amqpConfig->setHost("localhost");
$amqpConfig->setPort(5671);
$amqpConfig->setUser("principal");
$amqpConfig->setPassword("principal");
$amqpConfig->setIsSecure(true);
$amqpConfig->setSslVerify(false);
$amqpConfig->setSslVerifyName(false);
$amqpConfig->setIoType(AMQPConnectionConfig::IO_TYPE_STREAM);
$amqpConfig->setVhost("/");
$connection = AMQPConnectionFactory::create($amqpConfig); I got this error
Any idea how to further debug ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
It appears you have not configured RabbitMQ to use TLS. If you'd like us to assist please provide a docker compose project that I can clone and run to see the same issue you report, or at the very least, provide all of your RabbitMQ configuration (including certificates) as well as your PHP and aio-pika test code. Thanks. |
Beta Was this translation helpful? Give feedback.
-
@wiryonolau thank you SO MUCH for the pull request - #1106 |
Beta Was this translation helpful? Give feedback.
Hi I need time to prepare my code for share
Here is what I found.
Still testing ssl
Setting setSslVerify false works normally as long the cert and ca cert is null