Skip to content

MikeFultonDev/samples

Repository files navigation

samples

Sample Code for various things I am working on

crtzosmfCert

This script will generate a certificate that can be used instead of a userid/password when driving a z/OSMF API. The certificate is issued for the user running the script, and it resides in RACF (no support for TopSecret or ACF2 at this point). A browser certificate called zosmf-bin.p12 is generated. For syntax, specify:

crtzosmfCert -?

To use the browser certificate:

  • download it to your device, in binary format, then import it into your browser (For firefox, go to Preferences / Privacy and Security / View Certificates / Import)

To use the pem certificate and key pair:

  • download the two files to your device, in binary format, then use them (For Python, see xsysvar.py )

To use the RACF certificate directly on z/OS:

  • specify the user, certificate label, and keyring in your request (For z/OS Toolkit, see xsysvar )

These examples require the zospm tools

xsysvar

This script shows how to drive the z/OSMF system variable services either with userid/password or with a client certificate on z/OS. The syntax is straight-forward. To display the value for the variable 'fred':

  • xsysvar fred To set the value of the variable 'fred' to 'pink':
  • xsysvar fred=pink

As with crtzosmfCert, xsysvar requires zospm tools

About

Place to put sample code I work on

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published