certcheck - check certificate chain or self-signed

NAME

certcheck - check certificate chain or self-signed

SYNOPSIS

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

DESCRIPTION

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.

<check>

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

SEE ALSO

Own project ressources:

Note: The master Git repository in on the GRICAD Gitlab. Other Git repository are mirror or fork.

AUTHORS

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

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