"https://expired.badssl.com" 有什么用?谁能给我解释一下
what is the use of "https://expired.badssl.com" ? Can someone explain it to me
我在我的代码中使用它如下。但不明白它有什么用。
URL url = new URL("https://expired.badssl.com/");//https://revoked.grc.com/
HttpsURLConnection urlConnection = (HttpsURLConnection)url.openConnection();
urlConnection.setHostnameVerifier(connection.getHostnameVerifier());
urlConnection.setSSLSocketFactory(connection.getSSLContext().getSocketFactory();
LineNumberReader lnr =
new LineNumberReader(new InputStreamReader(urlConnection.getInputStream()));
String line;
while (null != (line = lnr.readLine()))
System.out.println(line);
https://expired.badssl.com/
SSL 证书已过期,用于测试在连接到某些网站时可能遇到证书过期的边缘情况。
你可以找到更多@https://github.com/chromium/badssl.com
它提供其他子域作为
self-signed.badssl.com
测试自签名证书相关边缘案例
mixed.badssl.com
等
我在我的代码中使用它如下。但不明白它有什么用。
URL url = new URL("https://expired.badssl.com/");//https://revoked.grc.com/
HttpsURLConnection urlConnection = (HttpsURLConnection)url.openConnection();
urlConnection.setHostnameVerifier(connection.getHostnameVerifier());
urlConnection.setSSLSocketFactory(connection.getSSLContext().getSocketFactory();
LineNumberReader lnr =
new LineNumberReader(new InputStreamReader(urlConnection.getInputStream()));
String line;
while (null != (line = lnr.readLine()))
System.out.println(line);
https://expired.badssl.com/
SSL 证书已过期,用于测试在连接到某些网站时可能遇到证书过期的边缘情况。
你可以找到更多@https://github.com/chromium/badssl.com
它提供其他子域作为
self-signed.badssl.com
测试自签名证书相关边缘案例
mixed.badssl.com
等