mirror of
https://github.com/pcvolkmer/cert-tools.git
synced 2025-07-02 06:22:54 +00:00
Initial commit
This commit is contained in:
59
README.md
Normal file
59
README.md
Normal file
@ -0,0 +1,59 @@
|
||||
# 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**
|
||||
|
||||
```shell
|
||||
cert-tools merge cert.pem ca.pem > chain.pem
|
||||
```
|
Reference in New Issue
Block a user