1
0
Fork 0
mirror of https://github.com/pcvolkmer/cert-tools.git synced 2026-01-07 09:03:48 +00:00
Application to show, check and cleanup content of PEM files
Find a file
2025-12-24 21:22:30 +01:00
.github/workflows build: fix win installer file name pattern 2025-12-22 00:28:50 +01:00
resources build: DEB and RPM packages 2025-12-21 23:47:03 +01:00
src chore: apply Rustfmt 2025-12-24 21:17:09 +01:00
ui chore: code cleanup 2025-12-24 21:22:30 +01:00
.gitignore build: add Cargo.lock file 2025-12-24 21:15:37 +01:00
.release-please-manifest.json chore(master): release 0.4.2 (#10) 2025-12-21 23:09:00 +00:00
Cargo.lock chore: apply Rustfmt 2025-12-24 21:17:09 +01:00
Cargo.toml chore(master): release 0.4.2 (#10) 2025-12-21 23:09:00 +00:00
CHANGELOG.md chore(master): release 0.4.2 (#10) 2025-12-21 23:09:00 +00:00
image.jpeg Initial commit 2025-01-03 13:16:21 +01:00
installer.nsi chore: add app icon 2025-01-24 15:17:20 +01:00
LICENSE Initial commit 2025-01-03 13:16:21 +01:00
Makefile build: DEB and RPM packages 2025-12-21 23:47:03 +01:00
README.md feat: add import of PKCS #12 files 2025-09-08 12:36:56 +02:00
release-please-config.json build: add release-please config 2025-12-21 23:59:19 +01:00
ui-image.jpeg feat: improve ui 2025-01-20 20:31:50 +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.

The GUI also provides import from and export to a password protected PKCS #12 file, including certificates and private keys.