X509::verify_cert_error_string

Description

Returns the same result as the OpenSSL function X509_verify_cert_error_string(). Values for the <X509 verify error code> argument must be the same values as those that the SSL::verify result command returns.

Syntax

X509::verify_cert_error_string <X509 verify error code>

X509::verify_cert_error_string <X509 verify error code>

  • Returns the same result as the OpenSSL function X509_verify_cert_error_string(). Values for the <X509 verify error code> argument must be the same values as those that the SSL::verify result command returns.

Examples

when CLIENTSSL_CLIENTCERT {
  set cert [SSL::cert 0]
  log local0. "Cert subject - [X509::subject $cert]"
  set error_code [SSL::verify_result]
  log local0. "Cert verify result - [X509::verify_cert_error_string $error_code]"
}