An AS400 Agent was downgraded from 24.x to 21.x renaming the library name but keeping the same KEYSTORE member in the INI file
KEYSTORE=UC4/INI(KEYSTORE)
After having done multiple attempts to clear out the member KEYSTORE and resetting the agent key and deleting the agent from client 0, the agent will refuse to connect to either the CP or the TLS_Gateway via a CP_PORT with the following error all the time:
U02000105 Error when calling the function 'gss_acquire_cred' (Ret='458752', minor='1004')
Agent AS400 any version
The KEYSTORE member from UC4/INI cannot be read.
Move the KEYSTORE to use a member from the file TMP instead the one from INI:
RMVM FILE(UC4/TMP) MBR(KEYSTORE)ADDPFM FILE(UC4/TMP) MBR(KEYSTORE)KEYSTORE=UC4/TMP(KEYSTORE)