npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ios-cert-checker

v0.1.0

Published

Privacy-first local CLI for inspecting iOS signing certificates and provisioning profiles.

Readme

ios-cert-checker 🍏

Privacy-first local CLI for inspecting iOS signing certificates and provisioning profiles.

npm GitHub Node License

ios-cert-checker inspects local .p12 certificates and .mobileprovision files, then reports signing metadata, entitlement details, expiry status, and certificate/profile compatibility. It is inspection-only: it does not upload files, sign IPAs, distribute apps, or call external services unless you explicitly request OCSP checks.

✨ Features

  • Interactive wizard for guided certificate/profile inspection.
  • .p12 parsing with password validation, common name, Team ID, serials, dates, and SHA fingerprints.
  • .mobileprovision parsing with profile metadata, devices, entitlements, app ID, and embedded developer certificates.
  • Compatibility checks for expiry, Team ID match, profile validity, and embedded certificate fingerprints.
  • Optional OCSP revocation checks for Apple signing certificates.
  • JSON output for scripts and CI.
  • Privacy-first local behavior with masked password prompts.

📦 Installation

npm install -g ios-cert-checker

Requirements:

| Tool | Purpose | | --- | --- | | Node.js >=18.17 | CLI runtime | | OpenSSL | CMS extraction, .p12 fallback parsing, and OCSP checks |

🚀 Quick Start

Launch the wizard:

ios-cert-checker wizard

Validate a certificate and provisioning profile:

ios-cert-checker check \
  --p12 cert.p12 \
  --provision profile.mobileprovision \
  --password "password"

Inspect a certificate:

ios-cert-checker cert --p12 cert.p12 --password "password"

Inspect a provisioning profile:

ios-cert-checker provision profile.mobileprovision

Print JSON:

ios-cert-checker check \
  --p12 cert.p12 \
  --provision profile.mobileprovision \
  --password "password" \
  --json

🧙 Wizard Mode

╭─ ios-cert-checker ───────────╮
│ Local iOS signing inspector  │
│ Interactive Wizard           │
╰──────────────────────────────╯

Choose Mode
1  Check certificate + provisioning profile
2  Inspect certificate only
3  Inspect provisioning profile only

? Choose a mode (1):
? Path to .p12:
? Path to .mobileprovision:
? P12 password: ********

Passwords are masked while typing and are never printed.

🔎 Output

◆ Reading PKCS#12 certificate
◆ Extracting provisioning profile plist
◆ Comparing certificate and profile

╭─ Status ──────────╮
│ ● VALID           │
│ All checks passed │
╰───────────────────╯

╭─ Certificate ──────────────────────────────────────────────────────────────╮
│ Common Name     │ iPhone Distribution: Example User (TEAMID1234)           │
│ Team ID         │ TEAMID1234                                               │
│ Expiration      │ 2027-02-11 10:39:20 UTC                                  │
│ SHA-1           │ AA:BB:CC:DD:EE:FF:...                                    │
│ SHA-256         │ 11:22:33:44:55:66:...                                    │
╰────────────────────────────────────────────────────────────────────────────╯

╭─ Validation ─────────────────────────────────────────────╮
│ ✓ Certificate is currently valid                         │
│ ✓ Provisioning profile is currently valid                │
│ ✓ Team IDs match                                         │
│ ✓ Certificate appears to match provisioning profile      │
╰──────────────────────────────────────────────────────────╯

🧾 JSON Mode

--json is intentionally noninteractive. Missing inputs return structured errors.

{
  "certificate": {
    "commonName": "iPhone Distribution: Example User (TEAMID1234)",
    "teamId": "TEAMID1234",
    "expiration": "2027-02-11T10:39:20.000Z",
    "sha1Fingerprint": "AA:BB:CC:DD:...",
    "sha256Fingerprint": "11:22:33:44:...",
    "isCurrentlyValid": true
  },
  "validation": {
    "status": "VALID",
    "checks": [
      {
        "name": "certificate-currently-valid",
        "status": "pass",
        "message": "Certificate is currently valid"
      }
    ]
  }
}

🛰 OCSP Revocation Checks

OCSP is opt-in because it contacts the certificate’s OCSP responder:

ios-cert-checker cert --p12 cert.p12 --password "password" --ocsp
ios-cert-checker check --p12 cert.p12 --provision profile.mobileprovision --password "password" --ocsp

The package includes Apple WWDR intermediate issuer certificates G2 through G6 for normal Apple signing certificates. Non-Apple certificates may still require their issuer certificate in the .p12.

🔐 Privacy & Security

  • Files stay on your machine.
  • No telemetry, analytics, or tracking.
  • The CLI does not make network requests unless --ocsp is passed.
  • .p12 passwords are never printed.
  • Private key material is never logged.
  • OpenSSL fallback uses public certificate extraction with -nokeys.

⚠️ Limitations

  • CRL checks are not implemented.
  • XML plist payloads are supported; binary plist payloads return a clear unsupported-format error.
  • Team ID and profile type detection are best-effort.
  • Certificate/profile matching depends on embedded DeveloperCertificates.
  • The wizard is terminal-friendly and focused, not a full-screen TUI.

🧪 Development

git clone https://github.com/david-x3d/ios-cert-checker.git
cd ios-cert-checker
npm install
npm run build
npm run typecheck

Run from source:

npm run dev -- wizard

Package dry run:

npm pack --dry-run

📄 License

MIT