How to resolve the TSS0940I DUPLICATE CERTIFICATE DETECTED message.
Receiving a TSS0940I DUPLICATE CERTIFICATE DETECTED trying to add a certificate to the security file.
Issue a TSS CHKCERT DCDSN(datasetname) or TSS CHKCERT DCDSN(datasetname) PKCSPASS(password) if password protected.
This will tell you if the certificate is already on the security file.
If the certificate is not already on the security file, make sure the DIGICERT name or LABLCERT name is not already being used.
Run a TSS LIST(ACIDS) DIGICERT(ALL) in batch and do a find on the DIGICERT name and LABLCERT name.