android-ssl | Example Android project using HTTPS/SSL with client | TLS library

 by   rfreedman Java Version: Current License: MIT

kandi X-RAY | android-ssl Summary

kandi X-RAY | android-ssl Summary

android-ssl is a Java library typically used in Security, TLS applications.,roid-ssl has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.

An example Android project using HTTPS/SSL with client certificates and self-signed server certificate.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              android-ssl has a low active ecosystem.
              It has 158 star(s) with 82 fork(s). There are 16 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 5 have been closed. On average issues are closed in 110 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of android-ssl is current.

            kandi-Quality Quality

              android-ssl has 0 bugs and 0 code smells.

            kandi-Security Security

              android-ssl has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              android-ssl code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              android-ssl is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              android-ssl releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              android-ssl saves you 210 person hours of effort in developing the same functionality from scratch.
              It has 514 lines of code, 30 functions and 14 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed android-ssl and discovered the below as its top functions. This is intended to give you an instant insight into android-ssl implemented functionality, and help decide if they suit your requirements.
            • Checks if a server certificate is trusted
            • Reverse the certificate chain
            • Finds the signer
            • Find the first signed certificate in the given list
            • Resume resume
            • Perform an HTTP GET request
            • Reads from the input stream and returns it as a String
            • Performs a request
            • Creates a new SSLContext with the specified certificates and server certificates
            • Produces a KeyStore from a PKCS12 file
            • Produces a trust store from a PEM file
            • Loads the DER certificate from the given input stream
            • When the instance has been saved create the instance
            Get all kandi verified functions for this library.

            android-ssl Key Features

            No Key Features are available at this moment for android-ssl.

            android-ssl Examples and Code Snippets

            No Code Snippets are available at this moment for android-ssl.

            Community Discussions

            QUESTION

            Getting SSL Certificates to work in API (Adding Custom SSL Certificates)
            Asked 2021-Dec-29 at 21:58

            I'm trying to load Data from a JSON API using the Volley Libary, which works just fine when using API level 30, but when I try to use the App on a device running API level 24 I get the following error:

            ...

            ANSWER

            Answered 2021-Nov-06 at 16:43

            As pointed out by @derpirscher in the Comments, the Problem was that API Levels <25 dont Accept the Root Certificate that Let's Encrypt uses.

            Before I add my Workaround, I should say that I'm not a Professional, so you souldn't just copy my Stuff.

            The Workaround I chose, was to manually add this Certificate to the Accepted ones in my App as follows. (The Article in the Documentation can be found (The Article in the Documentation can be found here) For that you first have to add a network security configuration, which in my case contains the Following:

            Source https://stackoverflow.com/questions/69864540

            QUESTION

            Pre-installed PdfViewerActivity does not work with SelfSigned trusted user certificate Android 11 ver 2
            Asked 2020-Dec-30 at 13:38

            I have a server with SelfSigned certificate. This certificate has been added to the Trusted credentials/User list on the Android 11 device. My application and browser work correctly with it: I can download pdf file from MyServer througt Chrome browser.

            My network-security-config.xml

            ...

            ANSWER

            Answered 2020-Dec-30 at 13:38

            Is it bug inside PdfViewerActivity or I have done something wrong?

            Neither. There are dozens of possible PDF viewer apps that might be launched by that Intent. None of them are your app, and so none of them are affected by your network security configuration. And on newer versions of Android, user-installed certificates are ignored by default.

            You will need to download the PDF file yourself, then use FileProvider and its getUriForFile() method to get a Uri to use with your Intent.

            Alternatively, you could switch the server to use a regular SSL certificate (e.g., Let's Encrypt) instead of a self-signed certificate, if that is practical for your situation.

            Source https://stackoverflow.com/questions/65507490

            QUESTION

            How to enable TLS 1.2 for whole application
            Asked 2020-Apr-28 at 09:03

            I've been reading a lot about TLS1.2 that my application needs to support but each article is about either activating on Glide or on Retrofit is there a way to activate it once and for all for the application ?

            My application is using:

            • Glide
            • Retrofit
            • Exoplayer

            I would like to avoid duplicating the same code on the OkHttpClient, for every library

            Articles:

            ...

            ANSWER

            Answered 2020-Apr-28 at 09:03

            As suggested by @CommonsWare, to enable TLS 1.2 on the libraries I've created a single OkHttpClientBuilder that is then use by these libraries, here is the code:

            I've created a gist with the same step as you'll find below.

            Your clientBuilder

            I've taken the custom socket from this gist and the related article

            Source https://stackoverflow.com/questions/61459509

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install android-ssl

            You can download it from GitHub.
            You can use android-ssl like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the android-ssl component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/rfreedman/android-ssl.git

          • CLI

            gh repo clone rfreedman/android-ssl

          • sshUrl

            git@github.com:rfreedman/android-ssl.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular TLS Libraries

            mkcert

            by FiloSottile

            v2rayN

            by 2dust

            acme.sh

            by acmesh-official

            nginxconfig.io

            by digitalocean

            v2ray

            by 233boy

            Try Top Libraries by rfreedman

            angular-configuration-service

            by rfreedmanTypeScript

            android-screencapture

            by rfreedmanGroovy