fix https handshake error on linux