Certcheck is a simple native macOS certificate toolkit — built entirely in Swift.
- Cert Decode: Parse and inspect X.509 certificates (subject, issuer, validity, fingerprints, extensions, SANs)
- CSR Decode: Decode Certificate Signing Requests with signature verification
- Key Inspect: Validate key for the cert
- Cert ↔ Key: Verify certificate matches private key
- Cert ↔ CSR: Verify certificate was issued from a CSR
- CSR ↔ Key: Verify CSR was created with a private key
- Cert Diff: View difference between 2 certs
- Chain Verify: Validate full certificate chains (leaf → intermediate → root)
- CA Bundle: Parse and inspect PEM CA bundles / truststores
- Keystore: Inspect JKS, JCEKS, and PKCS#12 (.p12/.pfx) keystores
- Generate CSR: Create Certificate Signing Requests with RSA/ECDSA/Ed25519 keys
- Generate Cert: Create self-signed, root CA, intermediate CA, or CA-signed certificates
- Converter: Convert Cert from PEM to DER or PKCS#7/ P7B
- To PFX: Bundle certificates, keys, and chains into PKCS#12 files
- Open multiple independent tabs of any tool type using the plus button or File > New Tab (Cmd+T).
- Use the dropdown beside the plus button to open a tab for another tool.
- Selecting a sidebar tool returns to its last-used open tab, or creates one if none exists.
- Inputs, results, errors, and running operations stay in memory when switching tabs or tools.
- Right-click a tab to rename it, move it left or right, or open another tab of the same type.
- New tabs use the tool name without numbering. Certificate and CSR decoder tabs use the parsed common name, or a SAN when no common name exists. Certificate comparison uses Certificate A's name, and generation forms use the entered common name. Manually renamed tabs keep their custom titles.
- Close a tab with its close button or File > Close Tab (Cmd+Shift+W).
- File > New Window (Cmd+N) opens an independent workspace. Cmd+W closes the window.
- Session contents are not saved to disk or restored after quitting. Passwords and private keys remain in memory only unless explicitly exported by a tool.
- Closing a tab discards its view state. Already-started operations may finish, including writing requested output files, but do not update another tab.
- The existing keystore registry remains shared between tabs and windows; registered keystores are not duplicated per session.
Certcheck/
├── Package.swift # Swift Package Manager config
├── Sources/Certcheck/
│ ├── CertcheckApp.swift # App entry point (@main)
│ ├── ContentView.swift # Main view + tab routing
│ ├── Models/
│ │ └── Models.swift # Core data models (CertInfo, TrustEntry, etc.)
│ ├── Services/
│ │ └── CertService.swift # Certificate crypto operations (Security framework)
│ └── Views/
│ ├── SharedComponents.swift # Sidebar, FieldRow, ActionButton, etc.
│ ├── InspectViews.swift # CertDecode, CSRDecode
│ ├── VerifyViews.swift # CertKey, CertCSR, CSRKey, ChainVerify
│ ├── StoresViews.swift # CABundle, Keystore
│ └── GenerateViews.swift # GenCSR, GenCert, ToPFX
cd Certcheck
swift build
swift runOr open in Xcode:
open Package.swift- macOS 13.0+ (Ventura)
- Swift 5.9+
- Xcode 15.0+ (for development)
Some advanced features are stubbed and would require OpenSSL CLI integration (via Process) or C interop:
- CSR parsing (ASN.1 structure)
- Private key import (PEM → SecKey)
- Key generation (RSA/EC/Ed25519)
- Certificate signing
- PKCS#12 export with password protection
- JKS/JCEKS keystore parsing