Run ZOWE CLI to login to APIML with certificate and key file and got following error:
zowe auth login apiml --ru false --base-p your_profile --cert-file xxxx.cer --cert-key-file xxxx.pem
Unexpected Command Error:
Please review the message and stack below.
Contact the creator of handler:
"C:\XXX\XXX\bin\npm\node_modules\@zowe\cli\lib/auth/ApimlAuthHandler"
Message:
error:1E08010C:DECODER routines::unsupported
Stack:
Error: error:1E08010C:DECODER routines::unsupported
at setKey (node:internal/tls/secure-context:92:11)
at configSecureContext (node:internal/tls/secure-context:174:7)
at Object.createSecureContext (node:_tls_common:117:3)
at Object.connect (node:_tls_wrap:1629:48)
at Agent.createConnection (node:https:150:22)
at Agent.createSocket (node:_http_agent:350:26)
at Agent.addRequest (node:_http_agent:297:10) at new ClientRequest (node:_http_client:335:16)
at Object.request (node:https:360:10)
ZOWE CLI version : 7.20.1
npm version : 8.19.2
Zowe CLI ONLY supports certificates in PEM format.
Zowe CLI does NOT currently support certificate files that require a password.
Recreate certifiate without password and rerun the ZOWE CLI command.