Help us shape the future of Go! Take the 2026 Go Developer Survey

xpki-tool

command
v1.0.316 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

README

xpki-tool

Installation

go install github.com/effective-security/xpki/cmd/xpki-tool@latest

Usage

Usage: xpki-tool <command> [flags]

PKI tools

Flags:
  -h, --help         Show context-sensitive help.
      --timeout=3    HTTP timeout in seconds

Commands:
  csr-info         print CSR info
  crl info         print CRL info
  crl fetch        fetch CRL
  cert info        print certificate info
  cert validate    validates certificate
  ocsp info        prints OCSP info
  ocsp fetch       fetch OCSP from certificate

Run "xpki-tool <command> --help" for more information on a command.

Commands

xpki-tool csr-info
Usage: xpki-tool csr-info <csr> [flags]

print CSR info

Arguments:
  <csr>    CSR file name

Flags:
  -h, --help         Show context-sensitive help.
      --timeout=3    HTTP timeout in seconds
xpki-tool cert info
Usage: xpki-tool cert info <in> [flags]

print certificate info

Arguments:
  <in>    certificate file name

Flags:
  -h, --help                Show context-sensitive help.
      --timeout=3           HTTP timeout in seconds

      --out=STRING          optional, output file to save parsed certificates
      --not-after=STRING    optional, filter certificates by NotAfter time
      --no-expired          optional, filter non-expired certificates
      --extensions          optional, print extensions values
xpki-tool cert validate
Usage: xpki-tool cert validate <cert> [flags]

validates certificate

Arguments:
  <cert>    certificate file name

Flags:
  -h, --help            Show context-sensitive help.
      --timeout=3       HTTP timeout in seconds

      --ca=STRING       optional, CA bundle file
      --root=STRING     optional, Trusted Roots file
      --out=STRING      optional, output file to save certificate chain
      --revocation      optional, validate certificate revocation status
      --proxy=STRING    optional, proxy address or DC name
      --with-aia        optional, enable AIA to fetch intermediates
xpki-tool crl info
Usage: xpki-tool crl info <in>

print CRL info

Arguments:
  <in>    DER-encoded CRL

Flags:
  -h, --help         Show context-sensitive help.
      --timeout=3    HTTP timeout in seconds
xpki-tool crl fetch
Usage: xpki-tool crl fetch <cert> [flags]

fetch CRL

Arguments:
  <cert>    certificate file name

Flags:
  -h, --help             Show context-sensitive help.
      --timeout=3        HTTP timeout in seconds

      --output=STRING    output folder name; required unless --print is set
      --all              fetch entire chain
      --proxy=STRING     optional, proxy address or DC name
      --print            print the fetched CRL
xpki-tool ocsp info
Usage: xpki-tool ocsp info <in> [flags]

prints OCSP info

Arguments:
  <in>    OCSP file name

Flags:
  -h, --help             Show context-sensitive help.
      --timeout=3        HTTP timeout in seconds

      --issuer=STRING    optional, PEM file with the issuer certificate to
                         verify the response signature
xpki-tool ocsp fetch
Usage: xpki-tool ocsp fetch <cert> [flags]

fetch OCSP from certificate

Arguments:
  <cert>    certificate file name

Flags:
  -h, --help            Show context-sensitive help.
      --timeout=3       HTTP timeout in seconds

      --ca=STRING       optional, CA bundle file
      --out=STRING      output folder name
      --proxy=STRING    optional, proxy address or DC name
      --print

Documentation

Overview

Command xpki-tool inspects and validates PKI artifacts: certificates, certificate requests, CRLs and OCSP responses. See cmd/xpki-tool/README.md for usage.

Directories

Path Synopsis
Package cli implements the xpki-tool command tree: csr-info, cert info/validate, crl info/fetch and ocsp info/fetch.
Package cli implements the xpki-tool command tree: csr-info, cert info/validate, crl info/fetch and ocsp info/fetch.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL