Sample JCL to create a self-signed certificate for CA ACF2
Use the following sample JCL to create a self-signed certificate for use with CA ACF2:
//ACFJOB EXEC PGM=ACFBATCH
//SYSPRINT DD SYSOUT=*
//SYSLBC DD DISP=SHR,DSN=yourDataSetName
//SYSHELP DD DISP=SHR,DSN=yourDataSetName
//SYSIN DD *
SET PROFILE(USER) DIV(CERTDATA)
GENCERT yourUserID SUBJSDN(CN='yourServerCom' -
OU='yourOrganizationalUnit' O='yourOrganization' -
L='yourLocality' SP='yourState' C='yourCountry') -
SIZE(2048) LABEL('yourLabelHere') -
KEYUSAGE(HANDSHAKE) -
ALTNAME(DOMAIN=yourSampleDomainCom) -
PCICC PKDSLBL('yourPkdsLabelHere')
//
The following information explains this JCL:
Statement | Description |
---|---|
yourUserID | User ID with which you want to associate the certificate The following guidelines apply to the user ID:
|
SUBJSDN | Combination of subparameters that describes the entity for which the certificate is being created This example uses the system on which you will run UIM.
|
SIZE | Size (in bits) of the private key that is generated and associated with this certificate The certificate contains a corresponding paired public key that is generated at the same time. Larger keys are more secure. This number is not arbitrary and there are a few predefined values. If you want to change the value, you might also need to change the method used to generate and store the key (PCICC in this example). For more information, see the CA ACF2 documentation. |
LABEL | Unique identifier that CA ACF2 uses for your certificate |
PCICC PKDSLBL | Type of key to create (specified by the PCICC parameter), and whether this key should be stored in the ICSF Private Key Data Store or PKDS (specified by the PKDSLBL subparameter) The label that you provide is a unique identifier that CA ACF2 uses to identify your private key. |
KEYUSAGE | Declaration of the purpose of this key You can use keys for a number of purposes, but you must declare them when creating the key. Because this key will be used only for the security handshake (a step in the SSL/TLS protocol), HANDSHAKE is the appropriate value. |