AC-14984: SSL connection fails with an error when using php-amqplib/php-amqplib version ^3.2.0
SSL connection fails with an error when using php-amqplib/php-amqplib version ^3.2.0. Quality patch AC-14984 for magento/framework-amqp applies to Magento Open Source and Adobe Commerce 2.4.6-p10 to 2.4.6-p11.
- Categories
- Other
- Components
- magento/framework-amqp
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.67
Issue
SSL connection fails with an error when using php-amqplib/php-amqplib version ^3.2.0.
Steps to reproduce
1. Configure the SSL connection in app/env.php: 'queue' => array ( 'amqp' => array ( 'host' => 'rabbitmq.example.com', 'port' => '11213', 'user' => 'magento', 'password' => 'magento', 'virtualhost' => '/', 'ssl' => 'true', 'ssl_options' => [ 'verify_peer' => true, 'verify_peer_name' => false ], ), ), 1. Run bin/magento setup:upgrade if this is the first time you're configuring the queue. 1. Run any queue consumer, for example: bin/magento queue:consumers:start async.operations.all
Adobe's page lists 2.4.6-p10 - 2.4.6-p11 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Adobe scheduled the permanent fix for 2.4.9.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply AC-14984. On Cloud, add AC-14984 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its AC-14984/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-base >=2.4.6-p10 <2.4.6-p12
- Patch file
- patches/os/AC-14984_2.4.6-p10.patch
- vendor/magento/framework-amqp/Connection/Factory.php
