ACF2 KEYRING and certificates have been set up using ZWEKRING from ZWESAMP JCL library. However, when trying to log in from Zowe desktop various error messages are seen:
(prepare-instance.sh,global_validate:34) Error 0: Could not contact z/OS MF on 'https://example.com:30443/zosmf/info' - 403
ZWED0179W - Unable to retrieve the list of certificate authorities from the keyring=ZWESTC_RING owner=ZWESTC Error: TypeError: keyring_js.listKeyring is not a function
org.zowe.zlux.auth.safsso: ZSS 502
{"messages":[{"messageType":"ERROR","messageNumber":"ZWEAM511E","messageContent":"The certificate of the service accessed using URL '/api/v1/zss/login' is not trusted by the API Gateway: Received fatal alert: bad_record_mac","messageKey":"org.zowe.apiml.common.tlsError"}]}
This document outlines how to collect documentation needed to diagnose Zowe certificate issues on a system secured by ACF2.
Follow the normal ACF2 certificate troubleshooting steps first to rule out typical certificate issues:
Sample RV Report JCL:
//REPORT EXEC PGM=ACFRPTRV
//SYSPRINT DD SYSOUT=*
//HEXDUMP DD SYSOUT=*
//* RECMAN1 DD DSN=IFASMF.STREAM,DISP=SHR,
//* SUBSYS=(LOGR,IFASEXIT)
//RECMAN1 DD DISP=SHR,DSN=SYS1.MAN1
//RECMAN2 DD DISP=SHR,DSN=SYS1.MAN2
//RECMAN3 DD DISP=SHR,DSN=SYS1.MAN3
//SYSIN DD *
TITLE(ACFRPTRV)
To turn on SECTRACE:
SECTRACE SET,ID=OMVSTRC,TYPE=OMVS,SFUNC=RDATALIB,END
To turn off SECTRACE:
SECTRACE DELETE,ID=OMVSTRC
Zowe specific certificate troubleshooting:
Notes regarding z/OSMF and Zowe:
The Z/OSMF public key must be in the Zowe keyring in order for Zowe to trust z/OSMF.
The TLS Web Client Authentication (1.3.6.1.5.5.7.3.2) value needs to be in the Extended Key Usage section in order for the Zowe certificate to also act as the client to the z/OSMF server. ACF2 cannot set this value. To verify this value was properly set outside of ACF2 the SAFCRRPT report can be ran with the EXT parameter:
//SAFRPTCR EXEC PGM=SAFCRRPT,REGION=0M,
// PARM='TITLE(CERTIFICATE UTILITY REPORT)'
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
USER(owner)
DETAIL EXT