Android OpenSSL analysis and Examples

Source: Internet
Author: User
Tags openssl version
  1. Android cupcake and donut use OpenSSL version 0.9.8h,CodeDirectory:
    External/OpenSSL
  2. Android cupcake, donut uses the keystore type BKS, version is bouncycastle 1.32, dependent java5, that is, bcprov-1.5-132.jar. Bouncycastle 1.35 started with Java 6 (bcprov-1.6-135.jar ). Related code and certificate library location: Dalvik/libcore/security/src/main/files/certificate, keystore
    Dalvik/libcore/security/src/main/source code
    (1) install bouncycastle keystore on PC see bouncycastle Official Website: http://bouncycastle.org/wiki/display/JA1/Using+the+Bouncy+Castle+Provider
    Note: The maximum length of the key pass and storepass of the bks keystore is 7.
  3. The HTTPS secure connection mode on Android is OpenSSL + bouncycastle keystore management.
  4. OpenSSL Certificate generation and management can refer to: http://www.ibm.com/developerworks/cn/java/j-certgen/
  5. Example: The server is on the PC and the client is on Android 1.6 or. Please refer to the source code: http://download.csdn.net/source/2316928
    The keystore and certificate on the server are both generated by the keytool tool provided by JDK. For detailed commands, see the BAT file in the directory of androidsslocallserver/CMD. Therefore, you only need to double-click the BAT file to start the server.
    The client uses code to import the server certificate (in the asserts directory) to the trust certificate library.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.