---
name: "xca_db_stat"
section: "1"
platform: "linux"
package: "xca"
version: "1.3.2-2"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/xca_db_stat"
---

# xca\_db\_stat(1)

XCA database analyse tool A small application to display the contents of an XCA database

## NAME

xca\_db\_stat - XCA database analyse tool\
 A small application to display the contents of an XCA  database

## SYNOPSIS

**xca\_db\_stat \<database name\>**\
 **xca\_db\_stat** \[*-h*/*--help*\]\

## DESCRIPTION

This tool reads an XCA database and dumps the meta data of the different chunks.The XCA database is actually only a collection of different chunks containing keys, certificates, certificate signing requests, templates and CRLs. Each chunk is prefixed by a header containing a magic, the total length, the version of the chunk, the PKI type and the internal name. How to read the contents of a chunk depends on the type and the version.\
\
 The header format is:

typedef struct {\
\
         uint32\_t magic;      /\* 0xcadb1969 \*/\
\
         uint32\_t len;        /\* length of this entry \*/\
\
         uint16\_t headver;    /\* Header version, currently 1 \*/\
\
         uint16\_t type;       /\* PKI type \*/\
\
         uint16\_t version;    /\* version of the chunk \*/\
\
         uint16\_t flags;      /\* deleted(1) outdated(2) \*/\
\
         char name\[80\];       /\* name of the entry \*/\
 } db\_header\_t ;

## AUTHOR

This manual page was written by Christian Hohnstaedt \<christian@hohnstaedt.de\>
