I've been trying to make an applet for ypp but I seem to be getting this error
"2019/04/28 20:52:26:826 WARNING r.a: No resource certificate found, falling back to class signers
2019/04/28 20:52:26:838 WARNING r.a: Failed to preinit: java.io.IOException: m.missing_class"
When I reverse-engineer the getdownapplet.class file I found the first error
the loadcertificate method is this :
So the result of loadCertificate("resource.crt") must be null
I have no idea what this certificate is and how I'm able to send one with my client
Any help?
"2019/04/28 20:52:26:826 WARNING r.a: No resource certificate found, falling back to class signers
2019/04/28 20:52:26:838 WARNING r.a: Failed to preinit: java.io.IOException: m.missing_class"
When I reverse-engineer the getdownapplet.class file I found the first error
Code:
if ((localObject1 = loadCertificate("resource.crt")) != null) { localArrayList.add(localObject1); } else { Log.log.b("No resource certificate found, falling back to class signers", new Object[0]); int i = (localObject1 = GetdownApplet.class.getSigners()).length; for (int j = 0; j < i; j++) { Object localObject2; if (((localObject2 = localObject1[j]) instanceof Certificate)) { localArrayList.add((Certificate)localObject2); } } }
Code:
/* Error */ protected static Certificate loadCertificate(String paramString) { // Byte code: // 0: ldc_w 24 // 3: invokevirtual 86 java/lang/Class:getClassLoader ()Ljava/lang/ClassLoader; // 6: aload_0 // 7: invokevirtual 88 java/lang/ClassLoader:getResource (Ljava/lang/String;)Ljava/net/URL; // 10: dup // 11: astore_0 // 12: ifnonnull +5 -> 17 // 15: aconst_null // 16: areturn // 17: aload_0 // 18: invokevirtual 104 java/net/URL:openStream ()Ljava/io/InputStream; // 21: astore_0 // 22: ldc 12 // 24: invokestatic 106 java/security/cert/CertificateFactory:getInstance (Ljava/lang/String;)Ljava/security/cert/CertificateFactory; // 27: aload_0 // 28: invokevirtual 105 java/security/cert/CertificateFactory:generateCertificate (Ljava/io/InputStream;)Ljava/security/cert/Certificate; // 31: astore_1 // 32: aload_0 // 33: invokevirtual 82 java/io/InputStream:close ()V // 36: aload_1 // 37: areturn // 38: astore_1 // 39: aload_0 // 40: invokevirtual 82 java/io/InputStream:close ()V // 43: aload_1 // 44: athrow // 45: astore_0 // 46: new 38 java/lang/RuntimeException // 49: dup // 50: aload_0 // 51: invokespecial 90 java/lang/RuntimeException:<init> (Ljava/lang/Throwable;)V // 54: athrow // 55: astore_0 // 56: new 38 java/lang/RuntimeException // 59: dup // 60: aload_0 // 61: invokespecial 90 java/lang/RuntimeException:<init> (Ljava/lang/Throwable;)V // 64: athrow // Local variable table: // start length slot name signature // 0 65 0 paramString String // 31 6 1 localCertificate Certificate // 38 6 1 localObject Object // Exception table: // from to target type // 22 32 38 finally // 0 16 45 java/security/cert/CertificateException // 17 36 45 java/security/cert/CertificateException // 38 45 45 java/security/cert/CertificateException // 0 16 55 java/io/IOException // 17 36 55 java/io/IOException // 38 45 55 java/io/IOException }
I have no idea what this certificate is and how I'm able to send one with my client
Any help?
Comment