I am trying to install wget on my mac with brew however I keep on getting the following error: 
abmacnb01:wget-1.13 abse08$ brew install openssl

```
==> make depend
==> make
==> make test
Last 15 lines from /Users/abse08/Library/Logs/Homebrew/openssl/04.make:
error 20 at 0 depth lookup:unable to get local issuer certificate
../certs/demo/dsa-ca.pem: C = AU, ST = Some-State, O = Internet Widgits Pty Ltd, CN = CA
error 20 at 0 depth lookup:unable to get local issuer certificate
../certs/demo/dsa-pca.pem: C = AU, ST = Some-State, O = Internet Widgits Pty Ltd, CN = PCA
error 18 at 0 depth lookup:self signed certificate
C = AU, ST = Some-State, O = Internet Widgits Pty Ltd, CN = PCA
error 10 at 0 depth lookup:certificate has expired
OK
../certs/demo/pca-cert.pem: C = AU, ST = Queensland, O = CryptSoft Pty Ltd, CN= Test PCA (1024 bit)
error 18 at 0 depth lookup:self signed certificate
C = AU, ST = Queensland, O = CryptSoft Pty Ltd, CN = Test PCA (1024 bit)
error 10 at 0 depth lookup:certificate has expired
OK
make[1]: *** [test_verify] Error 2
make: *** [tests] Error 2
READ THIS: https://git.io/brew-troubleshooting

These open issues may also help:
Erlang linked to wrong OpenSSL on OSX 10.6.8     https://github.com/Homebrew/homebrew/issues/47681
openssl: add 'enable-ssl-trace' option   https://github.com/Homebrew/homebrew/pull/45250

```

abmacnb01:wget-1.13 abse08$ 

Also If i look in /System/Library/OpenSSL it exists and if i run openssl version -a I get:

```
OpenSSL 0.9.8zg 14 July 2015
built on: Jul 31 2015
platform: darwin64-x86_64-llvm
options:  bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) blowfish(idx) 
compiler: -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -    fasm-blocks -O3 -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DMD32_REG_T=int - DOPENSSL_NO_IDEA -DOPENSSL_PIC -DOPENSSL_THREADS -DZLIB -mmacosx-version-min=10.6
OPENSSLDIR: "/System/Library/OpenSSL"
abmacnb01:wget-1.13 abse08$ 

```

OpenSSL seems to be a dependant for nearly package I wish to use, is there a simple way to solve this?