CoolFace
Apppublic

Deeps-2005/java-ssl-scanner

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
HostnameVerifierTrue.java12 linesDownload Raw Back to sample
1import javax.net.ssl.*;
2
3public class HostnameVerifierTrue {
4
5    public static void main(String[] args) {
6        HttpsURLConnection.setDefaultHostnameVerifier((hostname, session) -> {
7            return hostname.equals("yourdomain.com");
8        });
9    }
10}
11
12