This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Memory malloc failed.
Description
A memory error occurs.
Possible Causes
The memory allocation failed.
Solution
Error Message
Runtime error.
Description
This error code is reported if an error occurs during running.
Possible Causes
Solution
Error Message
Parameter check failed.
Description
An error occurs during parameter verification.
Possible Causes
The input value is out of range.
Solution
Check whether the input parameters are correct.
Error Message
Crypto operation error.
Description
Failed to invoke the third-party cryptographic API.
Possible Causes
An error occurs when the cryptography framework interacts with a third-party algorithm library.
Solution
Error Message
The certificate signature verification failed.
Description
The certificate signature verification failed.
Possible Causes
Incorrect certificate signature information is found during the signature verification.
Solution
Check whether the certificate is correct.
Error Message
The certificate has not taken effect.
Description
The certificate has not taken effect.
Possible Causes
The certificate has not taken effect. The effective time of the certificate is later than the current system time or the time specified by the service.
Solution
Error Message
The certificate has expired.
Description
The certificate has expired.
Possible Causes
The certificate has expired. The certificate expiration time is earlier than the current system time or the time specified by the service.
Solution
Error Message
Failed to obtain the certificate issuer.
Description
Failed to obtain the certificate issuer.
Possible Causes
The certificate issuer cannot be obtained during certificate verification.
Solution
Check whether the certificate is correct.
Error Message
The key cannot be used for signing a certificate.
Description
The key cannot be used for signing a certificate.
Possible Causes
The key cannot be used to sign certificates.
Solution
Check whether the certificate is correct.
Error Message
The key cannot be used for digital signature.
Description
The key cannot be used for digital signature.
Possible Causes
The key cannot be used for digital signature.
Solution
Check whether the certificate is correct.
Error Message
Maybe wrong password.
Description
The password for the private key is incorrect.
Possible Causes
The password for the private key is incorrect.
Solution
Check that the private key password is correct.
Error Message
Untrusted certificate.
Description
This error code is reported if the certificate is untrusted.
Possible Causes
During certificate chain verification, the certificate is not a trust anchor certificate.
Solution
If you trust the root certificate of the certificate to be verified, add it to the trust certificate list and try again. Otherwise, do not trust the certificate to be verified.
Error Message
The certificate has been revoked.
Description
This error code is reported if the certificate has been revoked.
Possible Causes
The certificate is in the CRL or the OCSP response indicates that the certificate has been revoked.
Solution
The certificate has been revoked. Do not trust the certificate. Replace the certificate with a valid one.
Error Message
Unsupported critical extension.
Description
The certificate has unknown key extensions.
Possible Causes
The certificate has unidentified key extensions. All key extensions must be processed according to X.509.
Solution
You can ignore the error by setting ignoreErrs, and obtain the extension data through the certificate algorithm library APIs for verification.
Error Message
Hostname mismatch in the certificate.
Description
This error code is reported if the hostname is not matched.
Possible Causes
The subject alternative name (SAN) or common name (CN) of the certificate does not contain the specified host name.
Solution
Check whether the hostnames parameter is correctly set. If it is correct, do not trust the certificate.
Error Message
Email address mismatch in the certificate.
Description
This error code is reported if the email address in the certificate is not matched.
Possible Causes
The certificate does not contain the specified email address.
Solution
Check whether the emailAddresses parameter is correctly set. If it is correct, do not trust the certificate.
Error Message
Key usage mismatch in the certificate.
Description
Certificate key usage mismatch in the certificate.
Possible Causes
The key usage extension of the certificate does not contain the specified key usage.
Solution
Check whether the keyUsage parameter is correctly set. If it is correct, do not trust the certificate.
Error Message
Failed to obtain the certificate revocation list.
Description
Failed to obtain the CRL.
Possible Causes
Solution
Error Message
The certificate revocation list has not taken effect.
Description
The CRL has not taken effect.
Possible Causes
The effective time of the CRL is later than the current verification time.
Solution
Error Message
The certificate revocation list has expired.
Description
The CRL has expired.
Possible Causes
The expiration time of the CRL is earlier than the current verification time.
Solution
Error Message
Failed to verify the signature of the certificate revocation list.
Description
Failed to verify the signature of the CRL.
Possible Causes
The CRL signature verification fails. The possible cause is that the signature is incorrect or the issuer certificate is not matched.
Solution
Check whether the CRL data is correct and whether the issuer certificate is matched.
Error Message
Failed to find the issuer of the certificate revocation list.
Description
Failed to obtain the issuer of the CRL.
Possible Causes
The CRL issuer certificate is not found.
Solution
This error may occur during partial certificate chain verification. You are advised to verify only the revocation status of the end entity certificate in this scenario. If you want to verify the revocation status of all certificates, do not to set partial certificate chain verification.
Error Message
Failed to obtain the OCSP response.
Description
Failed to obtain the Online Certificate Status Protocol (OCSP) response.
Possible Causes
Solution
Error Message
Invalid OCSP response.
Description
The OCSP response is invalid.
Possible Causes
The OCSP response data is in an incorrect format, cannot be parsed, or has expired.
Solution
Error Message
Failed to verify the OCSP signature.
Description
This error code is reported if the OCSP signature verification fails.
Possible Causes
The signature verification of the OCSP response fails. The possible cause is that the signature is incorrect or the signer certificate is not matched.
Solution
Add the signer certificate and issuer certificate of the OCSP response to the untrusted or trusted certificate list, and add the root certificate to the trusted certificate list.
Error Message
Unknown OCSP certificate status.
Description
The status of the OCSP certificate is unknown.
Possible Causes
The OCSP server cannot determine the certificate status.
Solution
Check whether the OCSP server is working properly or verify the certificate revocation status using other methods.
Error Message
Network connection timed out.
Description
This error code is reported if network connection times out.
Possible Causes
Solution
Check the Internet connection and ensure that the related server can be accessed.