set ssl version to TLSv1 to work around ssl EOF issues