private static CloseableHttpClient constructHttpsClient(int timeout) {
        long timeoutInMs = TimeUnit.SECONDS.toMillis(timeout);
        RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout((int) timeoutInMs)
                .setSocketTimeout((int) timeoutInMs).build();
        SSLContext sslContext = null;
        try {
            sslContext = SSLContexts.custom().build();
        } catch (NoSuchAlgorithmException e) {
            LOGGER.error("constructHttpsClient error ", e);
        } catch (KeyManagementException e) {
            LOGGER.error("constructHttpsClient error ", e);
        }
        SSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(sslContext,
                new String[]{"TLSv1.2"}, null,
                SSLConnectionSocketFactory.getDefaultHostnameVerifier());

        return HttpClients.custom().setDefaultRequestConfig(requestConfig).setSSLSocketFactory(sslsf).build();
    }
construct https client

@param timeout timeout setting
@return closeable timeout
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/utils/HttpManager.java