Connect to a HTTPS secure website and ping the latency
问题 My code currently tries to ping a URL the user provide. It works fine with non-HTTPS websites. But if I try with something like: https://www.httpsnow.org/ I get an exception: Could not establish connection. Error is: 'sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target' Code below: try { long startTime = DateProvider.getCurrentTimeMillis(); huc =