SSL return codes

There are IBM® i Access for Windows SSL return codes.

Key Database error codes

20001 - An unknown error occurred.
20002 - An asn.1 encoding/decoding error occurred.
20003 - An error occurred while initializing asn.1 encoder/decoder.
20004 - An asn.1 encoding/decoding error occurred because of an out-of-range 
        index or nonexistent optional field.
20005 - A database error occurred.
20006 - An error occurred while opening the database file.
20007 - An error occurred while re-opening the database file.
20008 - Database creation failed.
20009 - The database already exists.
20010 - An error occurred while deleting the database file.
20011 - Database has not been opened.
20012 - An error occurred while reading the database file.
20013 - An error occurred while writing data to the database file.
20014 - A database validation error occurred.
20015 - An invalid database version was encountered.
20016 - An invalid database password was encountered.
20017 - An invalid database file type was encountered.
20018 - The database has been corrupted.
20019 - An invalid password was encountered or the database is not valid.
20020 - A database key entry integrity error occurred. 
20021 - A duplicate key already exists in the database. 
20022 - A duplicate key already exists in the database (Record ID).
20023 - A duplicate key already exists in the database (Label).
20024 - A duplicate key already exists in the database (Signature).
20025 - A duplicate key already exists in the database (Unsigned Certificate).
20026 - A duplicate key already exists in the database (Issuer and Serial Number).
20027 - A duplicate key already exists in the database (Subject Public Key Info).
20028 - A duplicate key already exists in the database (Unsigned CRL).
20029 - The label has been used in the database.
20030 - A password encryption error occurred.
20031 - An LDAP related error occurred.
20032 - A cryptographic error occurred.
20033 - An encryption/decryption error occurred.
20034 - An invalid cryptographic algorithm was found.
20035 - An error occurred while signing data.
20036 - An error occurred while verifying data.
20037 - An error occurred while computing digest of data.
20038 - An invalid cryptographic parameter was found.
20039 - An unsupported cryptographic algorithm was encountered.
20040 - The specified input size is greater than the supported modulus size.
20041 - An unsupported modulus size was found
20042 - A database validation error occurred.
20043 - Key entry validation failed.
20044 - A duplicate extension field exists.
20045 - The version of the key is wrong
20046 - A required extension field does not exist. 
20047 - The validity period does not include today or does not fall within its 
        issuer's validity period.
20048 - The validity period does not include today or does not fall within its 
        issuer's validity period.
20049 - An error occurred while validating validity private key usage extension.
20050 - The issuer of the key was not found.
20051 - A required certificate extension is missing.
20052 - The key signature validation failed.
20053 - The key signature validation failed.
20054 - The root key of the key is not trusted.
20055 - The key has been revoked.
20056 - An error occurred while validating authority key identifier extension.
20057 - An error occurred while validating private key usage extension.
20058 - An error occurred while validating  subject alternative name extension.
20059 - An error occurred while validating  issuer alternative name extension.
20060 - An error occurred while validating  key usage extension.
20061 - An unknown critical extension was found.
20062 - An error occurred while validating key pair entries.
20063 - An error occurred while validating CRL.
20064 - A mutex error occurred.
20065 - An invalid parameter was found.
20066 - A null parameter or memory allocation error was encountered.
20067 - Number or size is too large or too small.
20068 - The old password is invalid.
20069 - The new password is invalid.
20070 - The password has expired.
20071 - A thread related error occurred.
20072 - An error occurred while creating threads.
20073 - An error occurred while a thread was waiting to exit.
20074 - An I/O error occurred.
20075 - An error occurred while loading CMS.
20076 - A cryptography hardware related error occurred.
20077 - The library initialization routine was not successfully called.
20078 - The internal database handle table is corrupted.
20079 - A memory allocation error occurred.
20080 - An unrecognized option was found.
20081 - An error occurred while getting time information.
20082 - Mutex creation error occurred.
20083 - An error occurred while opening message catalog.
20084 - An error occurred while opening error message catalog.
20085 - An null file name was found.
20086 - An error occurred while opening files, check for file existence and permissions.
20087 - An error occurred while opening files to read.
20088 - An error occurred while opening files to write.
20089 - There is no such file.
20090 - The file cannot be opened because of its permission setting.
20091 - An error occurred while writing data to files.
20092 - An error occurred while deleting files.
20093 - Invalid Base64-encoded data was found.
20094 - An invalid Base64 message type was found.
20095 - An error occurred while encoding data with Base64 encoding rule.
20096 - An error occurred while decoding Base64-encoded data.
20097 - An error occurred while getting a distinguished name tag.
20098 - The required common name field is empty.
20099 - The required country name field is empty.
20100 - An invalid database handle was found. 
20101 - The key database does not exist.
20102 - The request key pair database does not exist.
20103 - The password file does not exist.
20104 - The new password is identical to the old one.
20105 - No key was found in the key database.
20106 - No request key was found.
20107 - No trusted CA was found
20108 - No request key was found for the certificate.
20109 - There is no private key in the key database
20110 - There is no default key in the key database.
20111 - There is no private key in the key record.
20112 - There is no certificate in the key record.
20113 - There is no CRL entry.
20114 - An invalid key database file name was found.
20115 - An unrecognized private key type was found.
20116 - An invalid distinguished name input was found.
20117 - No key entry was found that has the specified key label.
20118 - The key label list has been corrupted.
20119 - The input data is not valid PKCS12 data.
20120 - The password is invalid or the PKCS12 data has been corrupted or been 
        created with later version of PKCS12.
20121 - An unrecognized key export type was found.
20122 - An unsupported password-based encryption algorithm was found.
20123 - An error occurred while converting the keyring file to a CMS key database.
20124 - An error occurred while converting the CMS key database to a keyring file.
20125 - An error occurred while creating a certificate for the certificate request.
20126 - A complete issuer chain cannot be built.
20127 - Invalid WEBDB data was found.
20128 - There is no data to be written to the keyring file.
20129 - The number of days that you entered extends beyond the permitted validity period.
20130 - The password is too short; it must consist of at least  characters.
20131 - A password must contain at least one numeric digit.
20132 - All characters in the password are either alphabetic or numeric characters.
20133 - An unrecognized or unsupported signature algorithm was specified.
20134 - An invalid key database type was specified.
20135 - The secondary key database is currently a secondary key database to another 
        primary key database.
20136 - The key database does not have a secondary key database associated with it.
20137 - A cryptographic token with label  cannot be found.
20138 - A cryptographic token password was not specified but is required.
20139 - A cryptographic token password was specified but is not required.
20140 - The cryptographic module cannot be loaded.  Cryptographic token support will 
        not be available.
20141 - The function is not supported for cryptographic tokens.
20142 - The cryptographic token function failed.

SSL error codes


25001 - The handle is not valid.
25002 - The dynamic link library is not available.
25003 -  An internal error occurred.
25004 - Main memory is insufficient to perform the operation.
25005 - The handle is not in a valid state for operation.
25006 - The key label is not found.
25007 - The certificate is not available.
25008 - Certificate validation error.
25009 - Error processing cryptography.
25010 - Error validating ASN fields in certificate.
25011 - Error connecting to LDAP server.
25012 - Internal unknown error. Report problem to service.
25101 - An error occurred processing the cipher.
25102 - I/O error reading key file.
25103 - Key file has an invalid internal format. Re-create key file.
25104 - Key file has two entries with the same key. Use iKeyman to remove the duplicate key.
25105 - Key file has two entries with the same label. Use iKeyman to remove the duplicate label.
25106 - The key file password is used as an integrity check. Either the key file has 
        become corrupted or the password ID is incorrect. 
25107 - The default key in the key file has an expired certificate. Use iKeyman to remove 
        certificates that are expired.
25108 - There was an error loading one of the dynamic link libraries.
25109 - A connection is trying to be made after environment has been closed.
25201 - The key file could not be initialized.
25202 - Unable to open the key file. Either the path was specified incorrectly or the file 
        permissions did not allow the file to be opened.
25203 - Unable to generate a temporary key pair.
25204 - A User Name object was specified that is not found.
25205 - A Password used for an LDAP query is not correct.
25206 - An index into the Fail Over list of LDAP servers was not correct.
25301 - An error occurred on close.
25401 - The system date was set to an invalid value.
25402 - Neither SSLV2 nor SSLV3 is enabled.
25403 - The required certificate was not received from partner.
25404 - The received certificate was formatted incorrectly.
25405 - The received certificate type was not supported.
25406 - An IO error occurred on a data read or write.
25407 - The specified label in the key file could not be found.
25408 - The specified key-file password is incorrect. The key file could not be 
        used. The key file may also be corrupt.
25409 - In a restricted cryptography environment, the key size is too long to be supported.
25410 - An incorrectly formatted SSL message was received from the partner.
25411 - The message authentication code (MAC) was not successfully verified.
25412 - The operation is unsupported.
25413 - The received certificate contained an incorrect signature.
25414 - The server certificate is not trusted. This usually occurs when you have 
        not downloaded the certificate authority for the server certificate. Use the 
        Digital Certificate Manager to obtain the certificate authority and 
        use the PC IBM Key Management utility to place the certificate authority in 
        your local key database. See CWBCO1050 for additional information
25415 - The remote system information is not valid.
25416 - Access denied.
25417 - The self-signed certificate is not valid.
25418 - The read failed.
25419 - The write failed.
25420 - The partner closed the socket before the protocol completed. This could mean the 
        partner is configured for SSL Client Authentication and no client certificate was 
        sent to the partner.
25421 - The specified V2 cipher is not valid.
25422 - The specified V3 cipher is not valid.
25425 - The handle could not be created.
25426 - Initialization failed.
25427 - When validating a certificate, unable to access the specified LDAP directory.
25428 - The specified key did not contain a private key.
25429 - A failed attempt was made to load the specified PKCS11 shared library.
25430 - The PKCS #11 driver failed to find the token specified by the caller.
25431 - The PKCS #11 token is not present in the slot.
25432 - The password/pin to access the PKCS #11 token is invalid.
25433 - The SSL header received was not a properly SSLV2 formatted header.
25434 - Unable to access the hardware-based cryptographic service provider (CSP).
25435 - Attribute setting conflict
25436 - The requested function is not supported on the platform that the application is running
25437 - An IPv6 connection is detected
25438 - Incorrect value is returned from the reset session type callback function
25501 - The buffer size is negative or 0.
25502 - Used with non-blocking I/O.
25601 - SSLV3 is required for reset_cipher, and the connection uses SSLV2.
25602 - An invalid ID was specified for  the function call.
25701 - The function call has an invalid ID.
25702 - The attribute has a negative length, which is invalid.
25703 - The enumeration value is invalid for the specified enumeration type.
25704 - Invalid parameter list for replacing the SID cache routines.
25705 - When setting a numeric attribute, the specified value is invalid for the 
        specific attribute being set.
25706 - Conflicting parameters have been set for additional certificate validation.
25707 - The cipher spec included an AES cipher spec that is not supported on the 
        system of execution.
25708 - The length of the peer ID is incorrect. It must be less than or equal to 16 bytes