Suchergebnisse
Suchergebnisse 1-2 von insgesamt 2.
um es etwas zu präzisieren - ich suche nach einer Möglichkeit für soetwas in J2ME: Quellcode 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 // Create a trust manager that does not validate certificate chains TrustManager[] trustAllTrustManager = new TrustManager[] { new X509TrustManager() { public java.security.cert.X509Certificate[] getAcceptedIssuers() { return null; } public void checkClientTrusted(final X509Certificate[] certs, final String authType) { return; ...
Hi all, ich versuche gerade die Server-Kommunikation von HTTP auf HTTPS umzustellen - Entwurf:: Quellcode 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 public void run(String ip, String port, String additional) { String url = "https://"+ip+":"+port+"/"+additional; try { HttpsConnection hc = (HttpsConnection)Connector.open(url); hc.setRequestMethod(HttpsConnection.GET); SecurityInfo si = hc.getSecurityInfo(); Certificate c = si.getServerCertificat...