Using the instruction from https://www.b4x.com/android/forum/t...tils2-sslcontext-kickstart.132549/post-839195
I created an .jks file but when I try to load certificates I get an error.
Is the problem in: Caused by: java.io.IOException: PKCS12 key store mac invalid - wrong password or corrupted file ?
I created an .jks file but when I try to load certificates I get an error.
B4X:
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Error occurred on line: 53 (B4XMainPage)
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.keywords.Common.CallSubDebug2(Common.java:1055)
at b4a.example.b4xpagesmanager._createpageifneeded(b4xpagesmanager.java:1061)
at b4a.example.b4xpagesmanager._showpage(b4xpagesmanager.java:418)
at b4a.example.b4xpagesmanager._addpage(b4xpagesmanager.java:246)
at b4a.example.b4xpagesmanager._addpageandcreate(b4xpagesmanager.java:260)
at b4a.example.b4xpagesmanager._initialize(b4xpagesmanager.java:166)
at b4a.example.main._activity_create(main.java:417)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at b4a.example.main.afterFirstLayout(main.java:105)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:250)
at android.app.ActivityThread.main(ActivityThread.java:7851)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:336)
at anywheresoftware.b4a.debug.Debug.CallSubNew2(Debug.java:285)
... 24 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:318)
... 25 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:132)
at b4a.example.b4xmainpage._setsslfactory(b4xmainpage.java:191)
at b4a.example.b4xmainpage$ResumableSub_B4XPage_Created.resume(b4xmainpage.java:80)
at b4a.example.b4xmainpage._b4xpage_created(b4xmainpage.java:46)
... 27 more
Caused by: java.io.IOException: PKCS12 key store mac invalid - wrong password or corrupted file.
at com.android.org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi.engineLoad(PKCS12KeyStoreSpi.java:844)
at java.security.KeyStore.load(KeyStore.java:1484)
... 32 more
** Activity (main) Resume **
Is the problem in: Caused by: java.io.IOException: PKCS12 key store mac invalid - wrong password or corrupted file ?