avoid openssl error by setting ssl version