Skip to content

ws1-framework/com.airwatch.crypto.openssl/OpenSSLCryptUtil/checkX509CertificateVersion

checkX509CertificateVersion

open fun checkX509CertificateVersion(certPath: String): Int

Checks the version attribute of an X.509 certificate.

This method is used to verify that the certificate version is valid (between 0 and 2). If the version is outside this range, the certificate may need to be rewritten.

Parameters

Name Description
certPath The path to the X.509 certificate file

Return

The version number of the certificate, or an error code if version is invalid