如何在Mac OSX上更新OpenSSL

时间:2018-09-28 10:20:31

标签: macos openssl composer-php macos-high-sierra

如果我运行openssl version,我将得到OpenSSL 1.0.2d 9 Jul 2015。 但是如果我运行php -i | grep OpenSSL,我会得到:

SSL Version => OpenSSL/0.9.8zd
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 0.9.8zh 14 Jan 2016
OpenSSL Header Version => OpenSSL 0.9.8y 5 Feb 2013
Openssl default config => /System/Library/OpenSSL/openssl.cnf
Native OpenSSL support => enabled

我需要将OpenSSL升级到1.0.1或更高版本。因为如果运行

,我将收到以下错误消息
composer create-project drupal-composer/drupal-project:8.x-dev \
> my-dir --stability dev --no-interaction

[Composer\Downloader\TransportException]                                     
  The "https://packages.drupal.org/8/drupal/coder%245ba3928962d22131a100415c9  
  a1a39bed3170ef1669af701b199d9cd2464e935.json" file could not be downloaded:  
   SSL operation failed with code 1. OpenSSL Error messages:                   
  error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol ver  
  sion                                                                         
  Failed to enable crypto                                                      
  failed to open stream: operation failed

0 个答案:

没有答案