Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit f7154e1

Browse files
committed
MAGETWO-89973: Cannot setup SSL connection to AMQP during magento installation from CLI
1 parent 9b5e1cf commit f7154e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/Amqp/Config.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,14 @@ public function getValue($key)
139139
*/
140140
private function createConnection(): AbstractConnection
141141
{
142+
$sslEnabled = !empty($this->getValue(self::SSL)) && $this->getValue(self::SSL) !== 'false';
142143
$options = new FactoryOptions();
143144
$options->setHost($this->getValue(self::HOST));
144145
$options->setPort($this->getValue(self::PORT));
145146
$options->setUsername($this->getValue(self::USERNAME));
146147
$options->setPassword($this->getValue(self::PASSWORD));
147148
$options->setVirtualHost($this->getValue(self::VIRTUALHOST));
148-
$options->setSslEnabled((bool)$this->getValue(self::SSL));
149+
$options->setSslEnabled($sslEnabled);
149150
/** @var array $sslOptions */
150151
if ($sslOptions = $this->getValue(self::SSL_OPTIONS)) {
151152
$options->setSslOptions($sslOptions);

0 commit comments

Comments
 (0)