fixed openssl read