Skip to content

com.android.org.conscrypt.OpenSSLX509CertificateFactory$ParsingException: inStream is empty #125

Open
@patrikschmidtke

Description

@patrikschmidtke

I am trying to use this for capital.scalable.droid (https://play.google.com/store/apps/details?id=capital.scalable.droid).

I start it with:


PACKAGE_ID=capital.scalable.droid
frida -U \
    -l ./config.js \
    -l ./native-connect-hook.js \
    -l ./native-tls-hook.js \
    -l ./android/android-proxy-override.js \
    -l ./android/android-system-certificate-injection.js \
    -l ./android/android-certificate-unpinning.js \
    -l ./android/android-certificate-unpinning-fallback.js \
    -f $PACKAGE_ID

However, HTTPs connections are not working, it is just loading indefinitely. The log looks like this:

== System certificate trust injected ==
== Certificate unpinning completed ==
== Unpinning fallback auto-patcher installed ==

 !!! --- Unexpected TLS failure --- !!!
Manually intercepting connection to ::ffff:35.241.3.184:443
      CertificateException: com.android.org.conscrypt.OpenSSLX509CertificateFactory$ParsingException: com.android.org.conscrypt.OpenSSLX509CertificateFactory$ParsingException: inStream is empty
      Thrown by com.android.org.conscrypt.OpenSSLX509CertificateFactory->engineGenerateCertificate
      [ ] Unrecognized TLS error - this must be patched manually
Manually intercepting connection to ::ffff:35.241.3.184:443
Manually intercepting connection to ::ffff:64.233.166.94:443
Manually intercepting connection to ::ffff:64.233.166.94:443

The proxy (mitmproxy) logs messages like:

Client TLS handshake failed. The client does not trust the proxy's certificate for secure.scalable.capital (OpenSSL Error([('SSL routines', '', 'sslv3 alert certificate unknown')]))

Any idea what might be the issue? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions