From 2972ec3d8621acd9c415b7b1425586b90e7cea40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draic=20Brady?= Date: Wed, 26 Feb 2014 00:09:47 +0000 Subject: [PATCH] Show warning when we retry a TLS connection for downloads --- src/Composer/Util/RemoteFilesystem.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index ecdd251b4..c06099265 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -232,6 +232,7 @@ class RemoteFilesystem && preg_match("|Peer certificate CN=`(.*)' did not match|i", $errorMessage, $matches)) { $this->retryTls = false; $expectedCommonName = $matches[1]; + $this->io->write(" Retrying download from ".$originUrl." with SSL Cert Common Name (CN): ".$expectedCommonName.""); return $this->get($this->originUrl, $this->fileUrl, $additionalOptions, $this->fileName, $this->progress, $expectedCommonName); } }