This section describes how to create a key database file in order to successfully connect with the Slack servers.
The key database stores the certificate for the Certificate Authority (CA) used by Slack. The SSL implementation references this database when determining if the target TLS server is trusted.
This database file does not store any private keys, therefore it is not necessary to protect it with a strong password. The database should use file system permissions to prevent other users updating the database.
Database management is performed with the gskkyman
utility. The documentation for this utility can be found in the
z/OS Cryptographic Services
section of the IBM Knowledge Center.
There are five steps required to correctly configure a database file for use by the Client Web Enablement Toolkit.
Determine the root CA used by Slack and the certificate. You can determine this by visiting the Slack homepage using your browser and examining the CA certificate used.
At the time of writing, this is DigiCert and the root CA certificate in use has the name DigiCert Global Root CA. You can download the certificate from the DigiCert Trusted Root Authority Certificates page.
Download the certificate in PEM format.
FTP the PEM file from your workstation to the z/OS USS environment using ASCII mode transfer.
To validate the certificate in the z/OS USS environment, the following command will display the certificate details.
openssl x509 -in DigiCertGlobalRootCA.crt.pem -inform pem -text -noout
Create a new key database using the gskkyman
utility.
gskkyman
utility with no arguments.myKeyDb
)This new database contains a list of default certificates. The certificates stored in the database can be listed using option 2 - Manage certificates on the Key Management Menu.
You now need to import the certificate for the CA into the database.
DigiCertGlobalRootCA.crt.pem
)DigiCert Global Root CA
)If the process completed succesfully, then the message Certificate imported.
is displayed.
A stash file allows access to the database when it is not possible to manually enter the password.
The stash file is written to the same location as the key database file, with the extension .sth
.