gnutls_certificate_verification_status_print - Linux
Overview
gnutls_certificate_verification_status_print is a utility used to interpret the verification status of an X.509 certificate as returned by the GNU TLS library function gnutls_certificate_verify_peers2()
. It takes a single argument, a hex-encoded string representing the verification status, and decodes it into a human-readable format.
Syntax
gnutls_certificate_verification_status_print VERIFICATION_STATUS
Options/Flags
None.
Examples
To use the gnutls_certificate_verification_status_print
command, you provide it with the verification status string as a hexadecimal argument. For example, to decode the status 0x15
, run the following command:
gnutls_certificate_verification_status_print 0x15
This will output:
Subject or issuer name mismatch
Common Issues
None.
Integration
The gnutls_certificate_verification_status_print
command can be integrated into scripts or command chains to facilitate automated certificate verification tasks. For example, it can be used as part of a script that checks the validity of certificates for a specific domain.
Related Commands
- gnutls_certificate_verify_peers2(): The GNU TLS library function that returns the verification status of an X.509 certificate.
- openssl and gnutls-cli: Tools for generating, managing, and verifying certificates.