Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Network_Security_in_Android.pdf

 Network_Security_in_Android.pdf

ValentineRutto

November 16, 2019
Tweet

More Decks by ValentineRutto

Other Decks in Programming

Transcript

  1. KOKO is mainstreaming liquid bio-ethanol cooking fuel as a fast,

    safe and affordable alternative to dirty cooking fuels such as charcoal https://kokonetworks.com
  2. SSL Certificate pinning Why SSL Certificate pinning? to prevent man

    in the middle attack What is SSL? -Secure Socket Layer - its a protocol that has always been used to encrypt and secure transmitted data between server and client (website and browser).
  3. SSL Certificate pinning What is ssl certificate pinning? is ensuring

    that any client SSL request first validates that the server’s certificate exactly matches the bundle’s certificate previously stored in the application.
  4. SSL Certificate pinning What steps do we need? • Obtaining

    a certificate for the desired host (preferably the whole certificate chain). • Pin the certificate to an instance of DefaultHttpClient
  5. SSL Certificate pinning Get certificate public key from ssllabs This

    is the hashed public key of the certificate
  6. Obfuscation What? -is a process of creating source code in

    a form that is hard for human to understand. Why? To prevent reverse engineering To reduce your app size
  7. 1. Configure your gradle file (app/gradle) 2. Use default android

    proguard rules or create your own 3. Edt your rules Obfuscation Steps