pirate-get icon indicating copy to clipboard operation
pirate-get copied to clipboard

SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:645)

Open jcvignes opened this issue 8 years ago • 6 comments

$ pirate-get -0 -S /TV Shows/Downloads/ search the.blacklist.S03e19 -m https://pirateproxy.red Trying https://pirateproxy.red... Failed Could not fetch mirrors :(
[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:645)

Hi there. Great tool but keeps generating the error above when trying to use it on El Capitan (Mac OS X 10.11). I have read it might be an OpenSSL issue but, after having spent hours on forum, I am (I think) up to date with:

openssl version -a OpenSSL 1.0.2j 26 Sep 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: /usr/bin/clang -I. -I.. -I../include -fPIC -fno-common -DOPENSSL_PIC -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: "/opt/local/etc/openssl"

It's the same in Python:

$ python -c "import ssl; print ssl.OPENSSL_VERSION" OpenSSL 1.0.2j 26 Sep 2016

but for some reason it doesn't seem to be working in Python3, is that why?

python3 -c "import ssl; print ssl.OPENSSL_VERSION" File "", line 1 import ssl; print ssl.OPENSSL_VERSION ^ SyntaxError: invalid syntax

I would appreciate some help here, I really like the tool!

Many thanks.

jcvignes avatar Oct 10 '16 00:10 jcvignes

but for some reason it doesn't seem to be working in python3

That's because you're missing parenthesis: print is a function in python 3.

It may be the ssl python3 is compile against is too old. A handshake failure usually means the server and the client couldn't negotiate a cipher, possibly because the server has strict requirements.

rnhmjoj avatar Oct 10 '16 06:10 rnhmjoj

Hi, is this the same error as this... Trying https://pirateproxy.onl... Failed (<urlopen error [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:852)>). Is there a simple fix?

bignellrp avatar Jan 07 '20 18:01 bignellrp

@bignellrp: you have a different error than @jcvignes. I'd say you have a python built with a very old openssl version. What is your OS/python version?

rnhmjoj avatar Jan 07 '20 20:01 rnhmjoj

Python 2.7.17, Python 3.6.9, Ubuntu 18.04.3

bignellrp avatar Jan 07 '20 21:01 bignellrp

Uhm, it's pretty recent. For completeness: can you tell me what's the output of

python3 -c 'import ssl; print(ssl.OPENSSL_VERSION)

rnhmjoj avatar Jan 07 '20 23:01 rnhmjoj

OpenSSL 1.1.1 11 Sep 2018

bignellrp avatar Jan 08 '20 10:01 bignellrp