Private key not found setting up SSL

Document ID : KB000113594
Last Modified Date : 14/09/2018
Show Technical Document Details
Issue:
Setting up SSL with digital certificates. The SSL connection fails because the private key is not being found.
Resolution:
The digital certificate is defined wrong to the keyring.

USAGE(CERTAUTH) is specified for the certificate. It should be USAGE(PERSONAL) since its not a root certificate but a client certificate. 

Examples commands to make the correction:

1. Remove the certificate from the keyring:
TSS REM(MASSERV) KEYRING(CSRRING) RINGDATA(CERTSITE,CSREKEY) 

2, Add the certificate back with the correct USAGE:
​TSS ADD(MASSERV) KEYRING(CSRRING) RINGDATA(CERTSITE,CSREKEY) USAGE(PERSONAL)