Show warning when we retry a TLS connection for downloads
parent
c9c6849df0
commit
2972ec3d86
|
@ -232,6 +232,7 @@ class RemoteFilesystem
|
||||||
&& preg_match("|Peer certificate CN=`(.*)' did not match|i", $errorMessage, $matches)) {
|
&& preg_match("|Peer certificate CN=`(.*)' did not match|i", $errorMessage, $matches)) {
|
||||||
$this->retryTls = false;
|
$this->retryTls = false;
|
||||||
$expectedCommonName = $matches[1];
|
$expectedCommonName = $matches[1];
|
||||||
|
$this->io->write(" <warning>Retrying download from ".$originUrl." with SSL Cert Common Name (CN): ".$expectedCommonName."</warning>");
|
||||||
return $this->get($this->originUrl, $this->fileUrl, $additionalOptions, $this->fileName, $this->progress, $expectedCommonName);
|
return $this->get($this->originUrl, $this->fileUrl, $additionalOptions, $this->fileName, $this->progress, $expectedCommonName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue