TSS0942I DATA FORMAT when adding certificate
search cancel

TSS0942I DATA FORMAT when adding certificate

book

Article ID: 247844

calendar_today

Updated On:

Products

Top Secret

Issue/Introduction

The following messages appeared when a certificate was added to the Top Secret

TSS0942I INVALID CERTIFICATE DATA - FORMAT          
TSS0301I  CHKCERT  FUNCTION FAILED, RETURN CODE =  4

 

Environment

Release : 16.0

Component : Top Secret for z/OS

Cause

The FORMAT keyword means that there is a problem on the certificate structure.

Resolution

A Certificate must start with:

-----BEGIN CERTIFICATE-----

 

And must end with:

-----END CERTIFICATE-----

When browsing a certificate to check its format, if no apparent problem is seem, it is worth opening the ISPF HEX editor to verify that the blank spaces on all lines corresponds to HEX 40 value. It is common that certificates transferred from a Windows system contain a HEX 0D value at the end of each line, which is in ASCII is the CR code.

If is that the case, replace any HEX 0D value to HEX 40.

Additional Information

Digital Certificates on Top Secret Techdoc