Skip to content
Unknown's avatar

ColinPaice

#IBMChampion

  • Home
  • Contact
  • Server startup – Second and third time
  • Server sends ServerHello

Category: Certificate login

Zowe: Client start here

The Zowe Command Level Interface running on the work station allows you to issue REST requests to the back end, and capture the output.

There is a Zowe plugin for VSCode IDE which allows you to z/OS files, etc from within VSCode.

Before you can use the Zowe Command Level Interface(CLI), or the Zowe extensions to VSCode you need to install code on your work station.

Follow Zowe CLI quick start.

I executed Installing Zowe CLI core from public npm, but did not install any plugins.

Displaying help

The command zowe –help-web did not work for me on Linux (known bug – caused by browser security).

Issuing commands

My z/OS servers are TLS enabled. The Zowe documentation is for configurations without TLS enabled.

I needed to use

export NODE_EXTRA_CA_CERTS=./cert.doc.ca.ec.pem
zowe zos-files list data-set "COLIN.Z*" --host 10.1.1.2 --port 10443 ...

Because the CA certificate is validated as part of the TLS handshake. If the CA sent from the server, does not match that in the NODE_EXTRA_CA_CERTS file, you will get a message

Response From Service: Error: self-signed certificate in certificate chain

You should specify the CA certificate location – but you could (for a test system) specify –reject-unauthorized false to override it.

Authenticating

If configured you can logon with certificate (and no password) or userid and password.

Certificate logon

If you have configured z/OSMF to use certificate logon, you map a certificate to a userid using the RACDCERT MAP command.

RACDCERT DELMAP(LABEL('IBMUSER1Label'))ID(IBMUSER) 
RACDCERT MAP ID(IBMUSER) -
WITHLABEL('IBMUSER1Label') -
SDNFILTER('CN=colinpaice.O=cpwebuser.C=GB')
RACDCERT LISTMAP ID(IBMUSER)
SETROPTS RACLIST(DIGTNMAP, DIGTCRIT) REFRESH
  • You can specify the exact Distinguished Name CN=colinpaice.O=cpwebuser.C=GB You need to get the parts in the right order, and use ‘.’ between components.
  • You can select parts of the DN to map to a userid.
  • You can specify the CA which maps to a userid (so all userid signed by O=MYORGCA.C=GB) map to userid MYORGID.

If a certificate did not have a mapping I got

ICH408I USER(IZUSVR  ) GROUP(IZUADMIN) NAME(ZOSMF STARTED TASK O) 560   
DIGITAL CERTIFICATE IS NOT DEFINED. CERTIFICATE SERIAL NUMBER(02AF)
SUBJECT(CN=zzz.O=cporg.C=GB) ISSUER(CN=SSCA256.OU=CA.O=SSS.C=GB).

Userid and password logon

If z/OSMF is not configured for certificate logon, You specify a userid and password on the request. The format depends on the tool used. For example

httpie (https)

https GET https://10.1.1.2:10443/zosmf/restfiles/ds/IBMUSER.ABC –verify ./ca.pem –auth colin:passw0rd

cURL

curl –cacert ca.pem –basic –user colin:passw0rd https://10.1.1.2:10443

Issue a command!

+ NODE_EXTRA_CA_CERTS=./cert.doc.ca.ec.pem
+ zowe zos-files list data-set 'COLIN.Z*' --cert-file zzcolinpaice.pem --cert-key-file zzcolinpaice.key.pem --host 10.1.1.2 --port 10443

Saving the logon parameters.

Once you have managed to get a session to z/OSMF working, you can store the connection parameters in profiles.

See How to save connection parameters: zowe CLI client configuration files

To uninstall Zowe

The command

npm list -g --depth=0

Lists all of the installed packages. This gave me

/usr/lib
├── @zowe/cli@8.23.1
├── corepack@0.32.0
└── npm@11.3.0

To uninstall it I used

 npm uninstall -g @zowe/cli

The list command gave me

/usr/lib
├── corepack@0.32.0
└── npm@11.3.0
Colin Paice Certificate login, client, configuration, ZOWE 1 Comment June 18, 2025September 17, 2025 2 Minutes

Zowe: Start here for my blog posts

I have a lot of blog posts on Zowe. Some are ready to make available, some are works in progress. In the link below, if there is an active link it points to the published topic. If there is no link, it is a place holder.

I do not find the Zowe documentation very easy to use. The documentation expects you to go down a certain path. If you do not follow this path, there is not much to help you. I tend to search the web, get to a page, and then get lost!

The start of the official documentation for server installation is here.

  • What is Zowe ? This gives a back ground in modern system architecture, and how Zowe fits into this
  • Planning. This provides a road map of the set up you will need to do. For example the security changes may take a week to implement system wide, before customising Zowe.
    • Planning for certificates.
    • How do I protect what Zowe users can do on z/OS?
    • Which messages to automate?
  • Installing and configuring z/OS system definitions.
    • Create the security definitions
    • Set up message. Messages I have encountered setting up a Zowe instance.
  • Configuring a run time instance
  • Starting Zowe on z/OS. This starts a minimal system, and helps you check out your definitions.
  • Message using Zowe. End user messages I have experienced
  • Debugging Zowe
    • What does this message mean?
  • Setting up a web browser to use Zowe
  • Configuring end user userids
  • Setting up logon with certificates – TBA
  • Which messages to automate
  • Using VSCODE with Zowe – TBA
  • Problem determination
  • What are good tools for working with a backend? – HTTPie.
  • Specifying Java overrides
  • Zowe on the client
    • What should I used on my client to talk to z/OS?
    • Zowe client start here
    • How to save connection parameters: zowe CLI client configuration files
    • Messages when using zowe Command Level Interface(CLI)
    • The Zowe cli help command is not helpful!
    • Colin’s Zowe CLI options
    • Secure store aren’t.
    • Setting up vscode before you start, so the editors work
  • Zowe explorer
    • Zowe explorer: first baby steps to submitting jobs
  • JSON Web Tokens(JWT)
    • Wow, how to logon securely is so complex….
    • Are JSON Web Tokens secure?
    • Using JWT and when it goes wrong

Colin Paice Certificate login, client, configuration, Messages, Trace, ZOWE Leave a comment May 18, 2025September 18, 2025 2 Minutes

Archives

  • August 2026
  • July 2026
  • June 2026
  • May 2026
  • April 2026
  • March 2026
  • February 2026
  • January 2026
  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • June 2018
  • May 2018

Tags

#include -xdev .class .jar .jmod .jrt .so .x /etc/hosts 9.2.1 24.04 31 bit 64 bit 3270 3990 @class accounting accounting data activation spec activity trace ADCD add_series admin API ADRDSSU AES CIPHER key AFFINITY Alias alpn alter amqsevt annotations apache web server api explorer application application patterns applications application trace applid architectural patterns archive ar command asm() ASN.1 assembler assembler code AT-TLS ATTLS authrec auto.map autoid automount availability backup base register bash BeautifulSoup Big Endian bimodal bind Binder bindkey.bind Blocking BPXPRM00 bpxtrace browser BT Buffer pool bypass cache C c31 c64 ca ca-certificates cache hit cache miss Callable services Camel capacity planning Catalog CBT ccdt CCDT.JSON CEE.SCEEH Certficate certificate Certificate authentication certificate filer certificate filter certificate import certificate logon certificate not found certificates certificate verify failed certpath chaining change events chart charts C header file chmount chrome chromium cipher suites CKDS CLASS(APPL) classpath Clean catalogs clear logrec Clients CLNTWGHT CLSSDRA cluster clustering code signing code singing colour command compare datasets compare directories compare members Compile CONCAT concatenate configuration connect connectionpool connection pooling connection pools Connectivity connect time consistency groups console commands constant CORS cp CPU cost create cross system csfkeys csfkgup csfserv csv ctrace Cuckoo C Unix Date curl CURSHCNV cut cut and paste CWPKI0024E data class data integrity dataset dataset alias Data set encryption datasets Datasets and Python data set statistics dcollect Debug default certificate default router delay delete delete dataset delete key DER design security DEVICE dgst DHCP diagnostic assistant diff Diffie-Hellman Digest disconnect time Display connections display symbol table dlogmode dlopen dlsym dmpmqcfg DNS dot command drop packet dsectgen dsfs dspmqrte du duplicity DWARF Dynamic Allocation ECB EC certificate EC DH EDCDSECT EDIT Elasticsearch ELF Elliptic Curve Enclave encrypted data encryption enums enumsize erep error messages Ethernet events exclude expire EXPORT SMP/E fetch finding data FIPS140-2 FIPS 140-3 first certificate forall foreach frr FTP gate gateway generated address get getelementbyid GLOBAL profile Gnome gnome-keyring gnome-terminal google Google sheets GPMSERVE gre grep GROUPS gskit GSKSRVR gsk_buffer gsk_make_signed_data_msg_extended gsk_strerror GSK_TRACE gtf HA Hay header files Health Center hide Hide/show High order bit hostname HTML http/2 Hub ICHRDSNT ICSF IDE ieantcr ieantdl ieantrt IEASYS IEFZB476 ilp32 import catalog Inbound connection include IND$FILE infocmp install Interface internet IODF IP address IPCS IP filtering ipip iptables IPV4 IPV6 IP V6 prefix IRRSEQ00 IRRSPK00 IRRSPS00 ispf ispf edit ISPF Edit macro ISPF Find ISPF logon ISPF tables ISPTLIB jaeger java java.security JavaScript JCL JCL symbol JCL Symbols jdk.certpath.disabledAlgorithm jdk.tls.disabledAlgorithms JES2 Jmod JMQI JMS JMSDeliveryMode JMX job JOBCLASS json JWT JZOS keyboard mapping keyring Kibana large screen LDAP less Liberty Liberty JMX liberty web server Libery Libre offfice linux List profile Little Endian lnklst LOADXX logmode LOGREC Logstream lp64 lpCS ls ltpaExpiration MAC MACRO Manager man pages MANX map certificates mapping mapping ISPF keys Master Catalog max-beans-in-free-pool maxPoolDepth MDB message API Messages MF=(L MFA mid-range Midrange migration MIH Modify Monitorin monitoring mount MQ mqat.ini MQCONN MQCONNX mqconsole mq reason code mq reconnect MQCNO mqRestCorsMaxAgeInSeconds mqstrerror mqweb mqweb JMX MQ workflow Multi Factor Authentication multihop MULTIID nanosleep NAT ncurses needle nettime Network Network Address Translation NetworkManager NJE nload nm Non functional requirements nonpersistent nopassword npm_debug OCSP offload messages One minute MVS one minute networks openssl open telemetry operations Opetelemetry OSA OSGI OSPF OTEL out of band OUTPUT packet forwarding packet size packet trace pandas parameter list parameters PARMLIB passticket Pass ticket Password paste pax pax command PC PCF pdftk PDF ToolKit PDS PDSE pending performance persistent PFKeys Ping pip install pkcs_certificate PKDS Planning Pool port problem detemination problem state proclib production Prometheus Protected user pthread_security_np put Python QPST QSG querySelector querySelectorAll RACF RACF database RACF GTF RACMAP Radar chart radvd RDQM RDW re-entrant macro re-entrant MF=(E realtime receive buffer receivetimeout reconnect reconnection recover Ubuntu desktop recovery redirect regular expression regular expressions reliability Remote System Explorer API renew private key reset password resilience RESOLVER_PROC resource adapter rest restart restConnector.jar Restore restoreFromSnapshot restoreSnapshotCache retConnector REXX Rexx to C RIP RMF router RSA R_PgmSignVer R_ticketserv r_usermap SAN save dashboard scala scalability Screen size Sear Security sed select members self signed send buffer server SET setDeliveryMode setmqaut setmqauth setprog sftp sharedclasses Shared classes Shared Classes Cache shared conversation shared memory Shared queue sharing Shell shmat shmctl show shutdown singing modules SlickEdit Smart Hub 2 SMF SMF 42 SMF 42.6 SMF120 SMFLIM smf logstreams SMF Real time SMSPDSE SMSPDSE1 SMS Volumes snapshotCache space spawn spool output spring SSH SSHD sshfs SSLCIPH stackoverlow start started tasks startup Static routing statistics STC STCK stop Storage class Store Clock striped STSSYM su Subchannel Subject Alternative Name Subnet subtype 6 sum supervisor mode suppress dump SVC SVC99 swagger Switch symbolic link SYS0.IPLPARM SYS1.DAE SYSADATA SYSJOBID SYSJOBNM syslmod syslogd SYSTEM.ADMIN.ACCOUNTING.QUEUE SYSTEM.ADMIN.STATISTICS.QUEUE System SSL systrace tailoring tar TCP/IP TCPC TCPIP TCPIP NMI TCPIP Port SAF TCPIP Trace TCPS terminal the future threads time Time skew Timestamp title TKDS TLS TLS handshake TOTP tp-link Trace traceformat traceroute trace route tracing shell trans-attribute transaction transactional trl trle Trust files TSO logon Tunnel Tunnelling twistie Ubuntu Ubuntu 24.04 Ufw firewall UID uniform clustering Unix Unix Services unmount User Catalog userids using validate files vector verify certificate version VI vim visualisation VSAM vscode waiting webLogic where which wi-fi wifi window Windows Wireshark WLM WLP WMQ WordPress WTOR x11 x3270 xfacilit XLC xml XPLINK Z/OS Z/OS console Z/OS Health Check z/OS Health checker z/OS macros z/OSMF Z/OS TCPIP messages zfs zip ZOWE zowe cli trace ZPDT zsf zWireshark __asm __console2
Powered by WordPress.com.
Loading Comments...