Android Question How do I work with an SSL certificate

Amateurtje

Member
Licensed User
Longtime User
I have an app which uses httpjob Poststring command to post a json string to the internet.

MY older installations work but trying to install it again, it does not work anymore.

De error is: Trustanchor for certifcationpath not found.

I think is has to do with SSL certification. With the following forum post I try to install a certificate.

https://www.b4x.com/android/forum/t...ith-okhttputils2-sslcontext-kickstart.132549/

I have made a Certifi.P12 file.. Where do I place it?
I have included in the main:

#AdditionalJar: slf4j-api-1.7.30
#AdditionalJar: sslcontext-android

And incuded the jar files in the library folder.

Do I need to install the script or do something else?
what to do with the remark: "keytool -importkeystore -srckeystore 1.pfx -srcstoretype pkcs12 -destkeystore clientcert.jks -deststoretype pkcs12" from Erel?

I really do not know what to do or where these errors come from... How cna I see if a certificate is installed on a apk?

When I send the JSOn Post string in the browser of the same device, it works perfectly... So I think it has to do with the app.

Can somebody please help me?
 

teddybear

Well-Known Member
Licensed User
Do you add HU2_PUBLIC as a conditional symbol?
 
Upvote 0

Amateurtje

Member
Licensed User
Longtime User
Do you add HU2_PUBLIC as a conditional symbol?
yes, I did. but is it correct to make a .P12 file and should I not address it somewhere?

PS. it seems that with HU2_ACCEPTALL it works.. IT probably does not use the certificate..... So I am still intereseted how that works..

PPS EDIT: A relatively new tablet keeps giving that the Handshake fails.. My older tablet goes ok now with HU2_ACCPETALL......
 
Last edited:
Upvote 0

teddybear

Well-Known Member
Licensed User
HU2_ACCEPTALL means that certificates will not be validated.
 
Upvote 0
Top