Hi there...
well yesterday all worked perfect!
But today found that there is a problem somewhere... not understand where exactly...
Using my custom SSL as described here:
www.b4x.com
www.b4x.com
[1]
All worked good - but today - wanted to run again my project and getting that:
I ve checked the password from cmd line - using keytool and it is showing the cert... expiring after 10 years...
So what exactly need ?... (i ve created the jks through keytool openjdk 19... also tried with adoptium 21 the same)
[2]
at one phone working with compiled version from yesterday...
but taking this at logs:
at Build config... i have this: HU2_ACCEPTALL, HU2_PUBLIC
a) The second question has to do with that... when I am using a custom ssl and client cert for connecting to it... i am calling only one time the SetSSLFactory before all httpjobs - correct?
b) But when at the same project i have also api and site with public-payed SSL - is it possible to connect at them... or need something different for those (because SetSSLFactory already running)
Actually an example (will help) of the right possition having 2-3 different type of sites... perhaps 1st with custom ssl httpjobs, 2-3 httpjobs with public/payed ssl, and 4th with custom ssl...
well yesterday all worked perfect!
But today found that there is a problem somewhere... not understand where exactly...
Using my custom SSL as described here:
Use custom SSL in httpjob - is it possible...
Well, trying to use a custom pfx already converted in bks using keytool... With the help of forum until now... and some knowledge have from b4j i am at this point: my main code: #AdditionalJar: bcprov-jdk15to18-1.81 ..... Sub GetCustomSSLSocketFactory As Object Try Dim keystore...

[B4X] Client certificates with OkHttpUtils2 SSLContext-Kickstart
This is a B4A + B4J library. This code uses JavaObject to access SSLContext-Kickstart SDK (v5.0.0): https://github.com/Hakky54/sslcontext-kickstart/tree/v5.0.0 License: Apache 2. It allows configuring OkHttpUtils2 to use an external keystore and include client certificates. 'Press Ctrl + B...

[1]
All worked good - but today - wanted to run again my project and getting that:
Exception: java.io.IOException: PKCS12 key store mac invalid - wrong password or corrupted file.
I ve checked the password from cmd line - using keytool and it is showing the cert... expiring after 10 years...
So what exactly need ?... (i ve created the jks through keytool openjdk 19... also tried with adoptium 21 the same)
[2]
at one phone working with compiled version from yesterday...
but taking this at logs:
ResponseError. Reason: javax.net.ssl.SSLHandshakeException: None of the TrustManagers trust this certificate chain, Response:
at Build config... i have this: HU2_ACCEPTALL, HU2_PUBLIC
a) The second question has to do with that... when I am using a custom ssl and client cert for connecting to it... i am calling only one time the SetSSLFactory before all httpjobs - correct?
b) But when at the same project i have also api and site with public-payed SSL - is it possible to connect at them... or need something different for those (because SetSSLFactory already running)
Actually an example (will help) of the right possition having 2-3 different type of sites... perhaps 1st with custom ssl httpjobs, 2-3 httpjobs with public/payed ssl, and 4th with custom ssl...