Skip to content

Tranzia tls cert inspect

tranzia tls cert inspect

Inspect and print details of a certificate file.

Synopsis

The 'cert inspect' command reads an X.509 certificate (PEM or DER format) and prints detailed information including: - Subject and Issuer - Validity period - Serial number - Public key algorithm and key size - Extensions (e.g., SANs, Key Usage, Extended Key Usage) - Whether it is a CA certificate

This is useful for debugging, verifying certificate contents, and understanding certificate chains. You can use this command for both leaf and intermediate/CA certificates.

Supports local file input or stdin.

tranzia tls cert inspect [flags]

Examples


  # Inspect a certificate from file
    tranzia cert inspect ./mycert.pem

  # Inspect a DER-encoded certificate
    tranzia cert inspect ./cert.der --format der

  # Inspect a certificate piped from another command
    cat cert.pem | tranzia cert inspect

  # Inspect with JSON output
    tranzia cert inspect cert.pem --output json

Options

      --format string   Specify certificate format: pem or der
  -h, --help            help for inspect
      --json            Output as JSON

SEE ALSO

Auto generated by spf13/cobra on 26-Jul-2025