Chilkat Tech Notes
Chilkat Tech Notes
Tips, techniques, and patterns for Chilkat developers
Chilkat Software

Signing on iOS with a USB Token or Smartcard

September 30, 2024 in HSM

Chilkat v10.0.0 is able to create digital signatures for PDF, XmlDSig (XAdES), CAdES, S/MIME, etc. using the HSM (USB token or smartcard) connected to an iPhone.  It’s just a matter of calling the certificate object’s LoadFromSmartcard function.  You’ll also need to add the “com.apple.token” entitlement to your application.

Here are some examples:

Objective-C Sign PDF using USB Token or Smartcard on iOS iPhone
Swift Sign PDF using USB Token or Smartcard on iOS iPhone

Objective-C Sign XML (XAdES) using USB Token or Smartcard on iOS iPhone
Swift Sign XML (XAdES) using USB Token or Smartcard on iOS iPhone

Objective-C Create CAdES p7m using USB Token or Smartcard on iOS iPhone
Swift Create CAdES p7m using USB Token or Smartcard on iOS iPhone

Blogroll

  • * Release Notes
  • Chilkat Binary Encodings
  • Chilkat Character Encodings
  • Chilkat Home
  • Example Code
  • Generate Chilkat Code from Postman
  • How to Determine FTP Connection Settings
  • How To Register ActiveX DLLs
  • MSVC Runtimes for .NET Assemblies
  • Never Handle Non-Text Binary Data as a String
  • Online XML Signature Validators
  • Reference Documentation
  • SOAP WSDL to Chilkat Code
  • Socket Programming Must-Know Concepts
  • StackOverflow (Chilkat Software)
© 2025 Chilkat Tech Notes · All rights reserved.