Issue I am developing an App that should connect to a webservice. For developing purposes I used simple http protocoll. This worked fine. public Response sendValidRequest(Context context, String encodedAccountData) throws ExecutionException, InterruptedException { OkHttpClient client = new OkHttpClient().newBuilder() .build(); RequestBody
Continue readingTag: ssl-certificate
SSL certificate update algorithm
Issue I have an IoT device and an Android application. Both of them communicate with each other via an MQTT server, and this communication is encrypted by SSL. Based on my understanding, for security reasons, I need to renew the
Continue readingWhat are the best practices when using a self-signed certificate in an Android app?
Issue I’m working on an app that connects to a MQTT mosquitto broker, running a secure TLS connection with a self-signed, user-defined CA cert is an important feature of the app. This question is asking about the best practices related
Continue readingStuck in Charles Proxy Certificate Installation for Kindle Fire TV stick
Issue We started working on Fire TV stick recently and we need to connect charles proxy tool for ease of development process. We were able to set up proxy using the command: adb shell am start -n com.amazon.ssm/.ControlPanel But we
Continue readingCould not validate certificate: null
Issue I’m trying to connect to a webserver using an Android 4.4.2 based device, when connecting with newer devices everything works fine but when connecting with these older devices I get the following error: javax.net.ssl.SSLHandshakeException: com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate:
Continue readingReact native video unable to play m3u8 file
Issue Problem I’m trying to stream a m3u8 file in a react native app (for android TV) and I’m getting this error: LOG {"error": {"errorCode": "22004", "errorException": "com.google.android.exoplayer2.ExoPlaybackException: Source error", "errorStackTrace": "com.google.android.exoplayer2.ExoPlaybackException: Source error at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:632) at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:604) at android.os.Handler.dispatchMessage(Handler.java:102)
Continue readingAndroid Instrumental test – SSLHandshakeException when using OkHttp MockServer.useHttps(…)
Issue I am trying to test and REST API with OkHttps mock server. Because of anroid limitations (no clear text http request allowed in newer android versions) I need to user server.useHttps(…). I tried it with the default SSLSocketFactory. class
Continue readingVerify certificate in android by boost failed
Issue I know that default path of certificates in android(maybe many devices) is /system/etc/security/cacerts , When I check the folder’s contents I found that has *.0 files (too many files). 1- boost can detect this folder by default? (set_default_verify_paths) or
Continue readingjavax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Flutter
Issue I am learning flutter. Flutter default app is working fine on the web, but showing following error on the Android emulator. I checked solutions on the internet, but did not work out for me. I tried following solutions. Solution
Continue readingFlutter Dio HTTPS Certificate Validation Ignoring onBadCertificate – CA Cert Problem?
Issue I’ve run into a bit of a quandary. I’m writing a client/server application. The frontend is in Flutter and uses the Dio http package, the backend is Java. The backend REST API is secured via TLS certificate. As many
Continue reading