Skip to content

Repository files navigation

Certificate Utility

Certificate Utility is a VS Code extension for inspecting certificate artifacts without leaving the editor. It provides certificate inspection and validation tools, dedicated conversion and keystore workflows, and an expiry scanner.

Features

Certificate Tools

Run Certificate Utility: Open Certificate Tools from the Command Palette.

  • Inspect pasted PEM content or explicit certificate files. The command surface also supports inspecting the active editor directly.
  • Classify X.509 certificates, certificate bundles, CSRs, private keys, PKCS#7 files, PKCS#12 files, and JKS keystores.
  • Decode structured certificate details including subject, issuer, SANs, fingerprints, signature algorithm, public key metadata, key usage, EKU hints, and authority information.
  • Validate validity windows, hostname matching, self-signed status, CA vs leaf usage, and optional trust verification through OpenSSL.
  • Analyze certificate chains and highlight likely leaf, intermediate, and root entries, duplicate serials, and missing issuers.
  • Fetch and inspect remote TLS certificate chains using OpenSSL s_client when available.
  • Open the Info button at the bottom of each tool section to view inline usage guidance, then click it again to collapse the details.

Conversion & Keystore

Run Certificate Utility: Open Certificate Conversion & Keystore from the Command Palette.

  • Build OpenSSL commands for PEM to DER and DER to PEM conversion from explicit file paths.
  • Inspect PKCS#7 and PKCS#12 bundles when OpenSSL is available.
  • Inspect CSR files.
  • Generate OpenSSL command instructions for PKCS#12 export from a certificate and private key.
  • Generate Java keytool commands for JKS alias export and JKS to PKCS#12 conversion.
  • Generate PEM certificate and private-key export commands for JKS, PFX, and PKCS#12 files.

Certificate Expiry Checker

Run Certificate Utility: Open Certificate Expiry Checker from the Command Palette.

  • Select a folder and scan recursively for certificate files.
  • Sort certificates by expiration date.
  • Filter the result table by all, expiring soon, expired, and valid certificates.
  • Toggle optional columns for certificate type, format, and valid-from date.

Supported Formats

The expiry scanner parses certificate files that Node.js can read as X.509 certificates:

  • .crt
  • .cer
  • .cert
  • .pem
  • .der
  • .ca-bundle
  • .ca
  • .bundle

The certificate tools workbench also classifies and guides workflows for:

  • .p12
  • .pfx
  • .p7b
  • .p7c
  • .p7s
  • .csr
  • .key
  • .jks

Commands

  • certificateUtil.openCertificateTools: Open Certificate Tools
  • certificateUtil.openCertificateOperations: Open Certificate Conversion & Keystore
  • certificateUtil.inspectActiveCertificate: Inspect Active Certificate
  • certificateUtil.inspectCertificateFile: Inspect Certificate File
  • certificateUtil.inspectRemoteCertificate: Inspect Remote Certificate
  • certificateUtil.openInspectTool: Open Inspect Tool
  • certificateUtil.openValidateTool: Open Validate Tool
  • certificateUtil.openChainTool: Open Chain Tool
  • certificateUtil.openConvertTool: Open Convert Tool
  • certificateUtil.openKeystoreTool: Open Keystore Tool
  • certificateUtil.openRemoteTool: Open Remote Tool
  • certificateUtil.openExpiryChecker: Open Certificate Expiry Checker

Requirements

  • VS Code 1.105.0 or newer.
  • Java keytool is required only when you run or generate JKS-specific actions.
  • OpenSSL is required only for external-tool workflows such as PKCS#7 or PKCS#12 inspection, trust verification, and remote TLS inspection.

Development

npm ci
npm run lint
npm run compile
npm run compile-tests
npm test
npm run package:vsix

Privacy

Certificate parsing runs inside the local or remote VS Code extension host. The extension does not upload certificate contents, private keys, or scan results. Remote inspection only makes the outbound TLS connection explicitly requested by the user, and OpenSSL/keytool operations run on the extension host machine.

About

Certificate Utility in VS Code

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages