Skip to content

Latest commit

 

History

History

README.md

Version License Platform

Document Reader SDK Certificate Pinning Sample Project (iOS)

Overview

Sample project in Swift, demonstrating how to set up and use the Certificate Pinning feature.

Installation

  1. Download or clone the current repository using the command git clone https://github.com/regulaforensics/DocumentReader-iOS.git
  2. Open the DocumentReaderCertificatePinning project in an IDE.
  3. Run pods pod install
  4. Add license and database files to the target:
    • Visit Regula Client Portal to get a trial license (regula.license file). The license creation wizard will guide you through the necessary steps.
    • Copy the license file to the project: CertificatePinning/DocumentReaderCertificatePinning/DocumentReaderCertificatePinning/
    • Copy the database file db.dat from Regula Client Portal to the project:CertificatePinning/DocumentReaderCertificatePinning/DocumentReaderCertificatePinning/
  5. Change the application Bundle ID to the one you have specified during the registration at Regula Client Portal.

Configuration of Certificate Pinning

Note: Requires iOS 14.0 minimum deployment target.

Check the official Apple documentation for Identity Pinning for iOS devices.

See the article how to generate key for the app.

  1. In the Info.plist file add NSPinnedDomains section to the NSAppTransportSecurity section.
  2. Add your domain. Set YES forNSIncludesSubdomains to spread pinning over all subdomains.
  3. In the domain NSPinnedLeafIdentities array use your generated 'SHA-256' hash key.

Documentation

Document Reader SDK Mobile Documentation

Demo Application

Regula Document Reader iOS Demo Application in the App Store

Technical Support

To submit a request to the Support Team, visit Regula Help Center.

Business Enquiries

To discuss business opportunities, fill the Enquiry Form and specify your scenarios, applications, and technical requirements.