Before attempting to use the OpenSSL utility to make a connection to your mainframe, you should check that the certificates are in the correct format for your client application. Additionally, this allows you to check that you have the correct private key pass phrase.
At the Enterprise Developer command prompt, enter the following command:
openssl s_client -connect <Node>:<Port> -CApath "A:\Path\To\The\servername-root-cert.pem" -cert "A:\Path\To\The\servername-user-cert.pem" -certform PEM -key "A:\Path\To\The\servername-user-key.der" -keyform DER
You must replace values in the angle brackets <> with the following:
You should have something similar to:
openssl s_client -connect CSIMVS:20201 -CApath "C:\SSL\CSIMVS-root-cert.pem" -cert "C:\SSL\CSIMVS-MYUSER-cert.pem" -certform PEM -key "C:\SSL\CSIMVS-MYUSER-key.der" -keyform DER
If the command is successful, you would expect to see Verify return code: 0 or Verify return code: 19. A return code of 19 occurs if you are using a self-signed certificate.