Perform Public Key Pinning in KMM Project with Ktor to Enhance App Security

Ktor is a popular framework for Kotlin multiplatform projects but lacks built-in support for public key pinning. This course teaches you how to implement public key pinning for your Ktor HTTP client in Android and iOS apps using Ktor engines.
In this coffee break codelab, you'll explore:
  • Setting up HTTP client in KMM-based project using Ktor 
  • What is public key pinning and how it’s significant from security perspective? 
  • What is an engine in Ktor and why they can be useful?
  • What is OkHttp and Darwin engine respectively for Android and iOS apps.
  • Achieve Public key pinning using OkHttp and Darwin engine respectively for Android and iOS. 

Meet the instructor

Hardik Trivedi

Content Author & Course Instructor

More courses by the instructor