getssl icon indicating copy to clipboard operation
getssl copied to clipboard

getssl: curl error : 2

Open bpa2016 opened this issue 9 years ago • 8 comments

Debian verson : 6.0.10

curl 7.52.1 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.15 libssh2/1.2.6 Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: IDN IPv6 Largefile NTLM SSL libz

./getssl -c -f -d xyz.comxyz

detected os type = linux

checking for required which ... /usr/bin/which

checking for required openssl ... /usr/bin/openssl

checking for required curl ... /usr/local/bin/curl

checking for required nslookup ... /usr/bin/nslookup

checking for required awk ... /usr/bin/awk

checking for required tr ... /usr/bin/tr

checking for required date ... /bin/date

checking for required grep ... /bin/grep

checking for required sed ... /bin/sed

checking for required sort ... /usr/bin/sort getssl: curl error : 2

Regards,

Subhankar Ray

bpa2016 avatar Dec 24 '16 00:12 bpa2016

It could be that some DNS name requested by you via getssl cannot be looked up via external dns-server

bitfoo1 avatar Dec 24 '16 10:12 bitfoo1

From the command line ( SSH ) if you just do a

curl -I https://raw.githubusercontent.com/srvrco/getssl/master/getssl

what does that give ?

ghost avatar Dec 24 '16 12:12 ghost

curl -I https://raw.githubusercontent.com/srvrco/getssl/master/getssl curl: (2) Failed initialization

bpa2016 avatar Dec 24 '16 18:12 bpa2016

This is a problem with curl on your server. From the curl documentation "Very early initialization code failed. This is likely to be an internal error or problem, or a resource problem where something fundamental couldn't get done at init time. "

Since curl 7.52.1 doesn't seem to be the standard curl from the debian repository - can I ask how you installed curl on that machine ?

ghost avatar Dec 24 '16 19:12 ghost

Here is what I did after downloading the .gz file: tar -xvzf curl-7.52.1.tar.gz rm *.gz cd curl-7.52.1

Run configuration

./configure

make make install

/etc/init.d/apache2 restart

bpa2016 avatar Dec 24 '16 20:12 bpa2016

From the error you are getting the curl installation isn't correct - worth testing to see if you can curl to anything else ( other than just the github one that failed).

I'd suggest removing your manual install, and installing curl from the debian repository ( or just using that version if you already have it installed )

ghost avatar Dec 24 '16 21:12 ghost

Has using curl from the debian repository resolved this issue ?

ghost avatar Dec 27 '16 09:12 ghost

I'm going to close this as a GetSSL issue, as I'm 99% certain this is just an issue with your curl installation which wasn't working. If that's not the case though, please reopen the issue, with additional info as to the issue, and I'll happily look further.

ghost avatar Dec 28 '16 18:12 ghost