Skip to content

SSL TLS Error Codes on IBM i

The following error codes apply when connecting to or from the IBM i using SSL/TLS (HTTPS).

This data has been copied from the IBM web site page:

https://www.ibm.com/docs/en/i/7.4?topic=sockets-secure-socket-api-error-code-messages

SSL Error Codes

Return code Message ID Constant name
0 CPCBC80 GSK_OK
1 CPDBCA1 GSK_INVALID_HANDLE
2 CPDBCB3 GSK_API_NOT_AVAILABLE
3 CPDBCB9 GSK_INTERNAL_ERROR
4 CPC3460 GSK_INSUFFICIENT_STORAGE
5 CPDBC95 GSK_INVALID_STATE
8 CPDBCB2 GSK_ERROR_CERT_VALIDATION
107 CPDBC98 GSK_KEYFILE_CERT_EXPIRED
201 CPDBCA4 GSK_NO_KEYFILE_PASSWORD
202 CPDBCB5 GSK_KEYRING_OPEN_ERROR
301 CPDBCA5 GSK_CLOSE_FAILED
402 CPDBC81 GSK_ERROR_NO_CIPHERS
403 CPDBC82 GSK_ERROR_NO_CERTIFICATE
404 CPDBC84 GSK_ERROR_BAD_CERTIFICATE
405 CPDBC86 GSK_ERROR_UNSUPPORTED_CERTIFICATE_TYPE
406 CPDBC8A GSK_ERROR_IO
407 CPDBCA3 GSK_ERROR_BAD_KEYFILE_LABEL
408 CPDBCA7 GSK_ERROR_BAD_KEYFILE_PASSWORD
409 CPDBC9A GSK_ERROR_BAD_KEY_LEN_FOR_EXPORT
410 CPDBC8B GSK_ERROR_BAD_MESSAGE
411 CPDBC8C GSK_ERROR_BAD_MAC
412 CPDBC8D GSK_ERROR_UNSUPPORTED
414 CPDBC84 GSK_ERROR_BAD_CERT
415 CPDBC8B GSK_ERROR_BAD_PEER
417 CPDBC92 GSK_ERROR_SELF_SIGNED
420 CPDBC96 GSK_ERROR_SOCKET_CLOSED
421 CPDBCB7 GSK_ERROR_BAD_V2_CIPHER
422 CPDBCB7 GSK_ERROR_BAD_V3_CIPHER
428 CPDBC82 GSK_ERROR_NO_PRIVATE_KEY
501 CPDBCA8 GSK_INVALID_BUFFER_SIZE
502 CPE3406 GSK_WOULD_BLOCK
601 CPDBCAC GSK_ERROR_NOT_SSLV3
602 CPDBCA9 GSK_MISC_INVALID_ID
701 CPDBCA9 GSK_ATTRIBUTE_INVALID_ID
702 CPDBCA6 GSK_ATTRIBUTE_INVALID_LENGTH
703 CPDBCAA GSK_ATTRIBUTE_INVALID_ENUMERATION
705 CPDBCAB GSK_ATTRIBUTE_INVALID_NUMERIC
6000 CPDBC97 GSK_IBMI_ERROR_NOT_TRUSTED_ROOT
6001 CPDBCB1 GSK_IBMI_ERROR_PASSWORD_EXPIRED
6002 CPDBCC9 GSK_IBMI_ERROR_NOT_REGISTERED
6003 CPDBCAD GSK_IBMI_ERROR_NO_ACCESS
6004 CPDBCB8 GSK_IBMI_ERROR_CLOSED
6005 CPDBCCB GSK_IBMI_ERROR_NO_CERTIFICATE_AUTHORITIES
6007 CPDBCB4 GSK_IBMI_ERROR_NO_INITIALIZE
6008 CPDBCAE GSK_IBMI_ERROR_ALREADY_SECURE
6009 CPDBCAF GSK_IBMI_ERROR_NOT_TCP
6010 CPDBC9C GSK_IBMI_ERROR_INVALID_POINTER
6011 CPDBC9B GSK_IBMI_ERROR_TIMED_OUT
6012 CPCBCBA GSK_IBMI_ASYNCHRONOUS_RECV
6013 CPCBCBB GSK_IBMI_ASYNCHRONOUS_SEND
6014 CPDBCBC GSK_IBMI_ERROR_INVALID_OVERLAPPEDIO_T
6015 CPDBCBD GSK_IBMI_ERROR_INVALID_IOCOMPLETIONPORT
6016 CPDBCBE GSK_IBMI_ERROR_BAD_SOCKET_DESCRIPTOR
6017 CPDBCBF GSK_IBMI_ERROR_CERTIFICATE_REVOKED
6018 CPDBC87 GSK_IBMI_ERROR_CRL_INVALID
6019 CPCBC88 GSK_IBMI_ASYNCHRONOUS_SOC_INIT
-1 CPDBC81 SSL_ERROR_NO_CIPHERS
-2 CPDBC82 SSL_ERROR_NO_CERTIFICATE
-4 CPDBC84 SSL_ERROR_BAD_CERTIFICATE
-6 CPDBC86 SSL_ERROR_UNSUPPORTED_CERTIFICATE_TYPE
-10 CPDBC8A SSL_ERROR_IO
-11 CPDBC8B SSL_ERROR_BAD_MESSAGE
-12 CPDBC8C SSL_ERROR_BAD_MAC
-13 CPDBC8D SSL_ERROR_UNSUPPORTED
-15 CPDBC84 SSL_ERROR_BAD_CERT (map to -4)
-16 CPDBC8B SSL_ERROR_BAD_PEER (map to -11)
-18 CPDBC92 SSL_ERROR_SELF_SIGNED
-21 CPDBC95 SSL_ERROR_BAD_STATE
-22 CPDBC96 SSL_ERROR_SOCKET_CLOSED
-23 CPDBC97 SSL_ERROR_NOT_TRUSTED_ROOT
-24 CPDBC98 SSL_ERROR_CERT_EXPIRED
-26 CPDBC9A SSL_ERROR_BAD_KEY_LEN_FOR_EXPORT
-91 CPDBCB1 SSL_ERROR_KEYPASSWORD_EXPIRED
-92 CPDBCB2 SSL_ERROR_CERTIFICATE_REJECTED
-93 CPDBCB3 SSL_ERROR_SSL_NOT_AVAILABLE
-94 CPDBCB4 SSL_ERROR_NO_INIT
-95 CPDBCB5 SSL_ERROR_NO_KEYRING
-97 CPDBCB7 SSL_ERROR_BAD_CIPHER_SUITE
-98 CPDBCB8 SSL_ERROR_CLOSED
-99 CPDBCB9 SSL_ERROR_UNKNOWN
-1009 CPDBCC9 SSL_ERROR_NOT_REGISTERED
-1011 CPDBCCB SSL_ERROR_NO_CERTIFICATE_AUTHORITIES
-9998 CPDBCD8 SSL_ERROR_NO_REUSE