Skip to content

addAndroidDownloads is not work when use self signed cerfication ssl URL,the sharedTrustManager and trusty is open, delete the addAndroidDownloads,i #430

@deek-coder

Description

@deek-coder

addAndroidDownloads is not work when use self signed cerfication ssl URL,the sharedTrustManager and trusty is open, after delete the config of addAndroidDownloads,it normal operation.

RNFetchBlob
  .config({
    trusty: true,
    addAndroidDownloads: {
      useDownloadManager: true,
      mime: 'application/vnd.android.package-archive',
      path: `${RNFetchBlob.fs.dirs.DownloadDir}/${name}`,
      mediaScannable: true,
      notification: true
    }
  })
ReactNativeBlobUtilUtils.sharedTrustManager = object : X509TrustManager {
  override fun checkClientTrusted(chain: Array<java.security.cert.X509Certificate>, authType: String) {}

  override fun checkServerTrusted(chain: Array<java.security.cert.X509Certificate>, authType: String) {}

  override fun getAcceptedIssuers(): Array<java.security.cert.X509Certificate> {
    return arrayOf()
  }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions