1
0
mirror of https://github.com/pcvolkmer/cert-tools.git synced 2025-04-19 09:06:49 +00:00
2025-01-06 17:15:39 +01:00
2025-01-06 17:15:19 +01:00
2025-01-06 16:52:31 +01:00
2025-01-05 18:02:43 +01:00
2025-01-03 13:16:21 +01:00
2025-01-03 13:16:21 +01:00

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] <CERT> [KEY]

Arguments:
  <CERT>  Datei mit Zertifikaten im PEM-Format
  [KEY]   Datei mit Private Key im PEM-Format (Optional)

Options:
      --ca <CA>  Datei mit CA im PEM-Format (Optional)
  -h, --help     Print help

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 <CERT> [CA]

Arguments:
  <CERT>  Datei mit Zertifikaten im PEM-Format
  [CA]    Datei mit CA im PEM-Format

Options:
  -h, --help  Print help

Example

cert-tools merge cert.pem ca.pem > chain.pem

GUI

In addition to the console-based application, a simple iced-based graphical user interface is available in (sub-)package ui.

Description
Application to show, check and cleanup content of PEM files
Readme GPL-3.0 483 KiB
Languages
Rust 93.2%
Makefile 4.5%
NSIS 2.3%