title: Error 0D0C50A1, "unknown message digest algorithm" when installing WP packages
body: <p>I'm trying to run this command in <code>WP-CLI</code>: <code>wp package install wp-cli/scaffold-package-command</code>, and I'm getting this error:</p>
  
  <pre><code>Error messages:
  error:0D0C50A1:asn1 encoding routines:ASN1_item_verify:unknown message digest algorithm
  error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
  Failed to enable crypto
  failed to open stream: operation failed
  </code></pre>
  
  <p>If I run <code>openssl version -a</code></p>
  
  <pre><code>OpenSSL 1.0.2h  3 May 2016
  built on: reproducible build, date unspecified
  platform: darwin64-x86_64-cc
  options:  bn(64,64) rc4(ptr,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
  compiler: clang -I. -I.. -I../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
  OPENSSLDIR: "/usr/local/etc/openssl"
  </code></pre>
  
  <p>Why I'm getting this error? I'm using MAMP on OSX</p>