01.01.2013 Views

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.4.2 Tracing<br />

Testing JSSE under z/OS<br />

We found running the following test from z/OS UNIX System Services useful to<br />

quickly verify that the JSSE SSL protocol handler was working correctly. We<br />

performed the following steps:<br />

1. From a z/OS UNIX System Services shell, we changed to the /ctg/scsctg5<br />

directory where our server keystore was.<br />

2. We used the keytool command in Example 8-8 on page 199 to invoke the<br />

Key Management Tool to export the self-signed certificate from the server<br />

keystore in the file jssesslss.jks into a file called server.der.<br />

3. We used the keytool command in Example 8-18 to invoke the Key<br />

Management Tool to import the self-signed certificate from the file server.der<br />

into the keystore jsseclientsslonly.jks, identified by the alias ITSO. Because<br />

this keystore did not exist, keytool created it. <strong>The</strong> keystore password was set<br />

to default.<br />

Example 8-18 Creating a client keystore with the self-signed certificate<br />

$ [SC66] /ctg/scsctg5: keytool -import -alias ITSO -file server.der<br />

-keystore jsseclientsslonly.jks -storepass default<br />

Certificate was added to keystore<br />

This added our self-signed server certificate into the keystore as a trusted CA.<br />

4. We used the commands in Example 8-19 to set the CLASSPATH and run<br />

EciB1 against the JSSE SSL protocol handler.<br />

Example 8-19 Commands to test JSSE SSL using the SSL-only keystore<br />

export CLASSPATH=/usr/lpp/ctg500/ctg/classes/ctgclient.jar<br />

export CLASSPATH=$CLASSPATH:/usr/lpp/ctg500/ctg/classes/ctgsamples.jar<br />

java com.ibm.ctg.samples.eci.EciB1 ssl://wtsc66oe.itso.ibm.com 8062<br />

/ctg/scsctg5/jsseclientsslonly.jks default<br />

<strong>The</strong> commands ran the compiled version of EciB1 inside ctgsamples.jar and<br />

connected to the <strong>CICS</strong> TG on our z/OS system using the SSL support provided<br />

by the JSSE library on both client and <strong>CICS</strong> TG. We entered 1 at the prompt to<br />

select our <strong>CICS</strong> server. <strong>The</strong> results of our test was identical to that shown in<br />

Example 8-16 on page 206, except the time and date on our <strong>CICS</strong> server was<br />

different.<br />

For information on tracing the <strong>CICS</strong> TG on z/OS, refer to the tracing section of<br />

Chapter 7, “TCP connections to the <strong>Gateway</strong> daemon on z/OS” on page 133.<br />

Chapter 8. SSL connections to the <strong>Gateway</strong> daemon on z/OS 211

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!