certcheck - check certificate chain or self-signed |
certcheck - check certificate chain or self-signed
certcheck check cert_base_name
certcheck text cert_base_name.pub.pem
certcheck txt cert_base_name.pub.pem
certcheck info cert_base_name.pub.pem
certcheck version
certcheck help
The certcheck
command verifies a certificate. For a certificate signed by a certification authority, the three parts (public, private and chain) are checked with openssl
. For a self-signed certificate, it is verified that it works correctly with openssl
.
The subcommand check
verify the certificate chain and takes the certificate name base as input. The three certificates (public, private and chain parts) can take the form:
cert_base_name.pub.pem
cert_base_name.key.pem
cert_base_name.chain.pem
or one of theses...
cert_base_name.crt cert_base_name.cer
cert_base_name.key cert_base_name.keystore
cert_base_name.bundle cert_base_name.ca-bundle
In the case of a self-signed certificate, the check
command does not search for a certification chain file, but only verifies that the certificate is valid.
Example:
certcheck check cert_base_name
text
or txt
or info
The text
(or txt
, info
) subcommand returns the main values (lifetime, DNS name...) of the public key. The certificate's name base can also be used as command-line input, in which case the same rules as with check are applied to find the public certificate.
certcheck text cert_base_name.pub.pem
certcheck txt cert_base_name.pub.pem
certcheck info cert_base_name.pub.pem
version
The version
subcommand returns the version of certcheck
.
certcheck version
help
The help
subcommand returns this help.
certcheck help
Own project ressources:
Note: The master Git repository in on the GRICAD Gitlab. Other Git repository are mirror or fork.
Written by Valentin Hilbig (hilbix https://gist.github.com/hilbix/bde7c02009544faed7a1) and extended by Gabriel Moreau <Gabriel.Moreau@univ-grenoble-alpes.fr>, Grenoble - France
Copyright (C) 2015, Valentin Hilbig, Copyright (C) 2023-2024, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, France.
Licence: CC0 (Creative Commons Zero - https://spdx.org/licenses/CC0-1.0)
certcheck - check certificate chain or self-signed |