# Cert-Tools Application to show and merge content of PEM files ## Usage This application provides two tools: `print` and `merge`. ### Print content of PEM files This will print out some information about the file(s), checks if the certificate chain is valid and each certificate is within its lifetime. If the argument `KEY` is present, the contained private key will be checked against the first certificates public key. If the given certificate file only contains the certificate, but not the complete certificate chain, the optional argument `--ca` can be used to print the whole chain. ``` Usage: cert-tools print [OPTIONS] [KEY] Arguments: Datei mit Zertifikaten im PEM-Format [KEY] Datei mit Private Key im PEM-Format (Optional) Options: --ca Datei mit CA im PEM-Format (Optional) -h, --help Print help ``` ![](image.jpeg) ### Merge Cert and CA file This will print out a merged certificate chain. If the resulting PEM file contains certificates not in required order, the certificates will be sorted. In case of certificates present in both files, the application ensures that each certificate only appears once. If the argument `CA` is missing, only the given certificate file will be processed (sorting, unique certificates). ``` Usage: cert-tools merge [CA] Arguments: Datei mit Zertifikaten im PEM-Format [CA] Datei mit CA im PEM-Format Options: -h, --help Print help ``` **Example** ```shell cert-tools merge cert.pem ca.pem > chain.pem ``` ## GUI In addition to the console-based application, a simple graphical user interface is available in (sub-)package `ui`.