diff --git a/src/Composer/Command/SelfUpdateCommand.php b/src/Composer/Command/SelfUpdateCommand.php
index 8351c7d61..274ed6522 100644
--- a/src/Composer/Command/SelfUpdateCommand.php
+++ b/src/Composer/Command/SelfUpdateCommand.php
@@ -67,7 +67,7 @@ EOT
$baseUrl = 'http://' . self::HOMEPAGE;
$disableTls = true;
} elseif (!extension_loaded('openssl')) {
- $output->writeln('The openssl extension is required for SSL/TLS protection.');
+ $output->writeln('The openssl extension is required for SSL/TLS protection but is not available.');
$output->writeln('You can disable this error, at your own risk, by enabling the \'disable-tls\' option.');
return 1;
} else {
@@ -79,8 +79,8 @@ EOT
if (!is_null($config->get('cafile'))) {
$remoteFilesystemOptions = array('ssl'=>array('cafile'=>$config->get('cafile')));
}
- if (!is_null($input->get('cafile'))) {
- $remoteFilesystemOptions = array('ssl'=>array('cafile'=>$input->get('cafile')));
+ if (!is_null($input->getOption('cafile'))) {
+ $remoteFilesystemOptions = array('ssl'=>array('cafile'=>$input->getOption('cafile')));
}
}
try {
diff --git a/src/Composer/Factory.php b/src/Composer/Factory.php
index 3196f24d9..7e3f3fdd5 100644
--- a/src/Composer/Factory.php
+++ b/src/Composer/Factory.php
@@ -208,8 +208,8 @@ class Factory
$rfsOptions = array();
if ($disableTls === false) {
- if (!is_null($input->get('cafile'))) {
- $rfsOptions = array('ssl'=>array('cafile'=>$input->get('cafile')));
+ if (!is_null($input->getOption('cafile'))) {
+ $rfsOptions = array('ssl'=>array('cafile'=>$input->getOption('cafile')));
}
}
$rfs = new RemoteFilesystem($io, $rfsOptions, $disableTls);