Previous Topic: Exporting Certificates to Data SetsNext Topic: REKEY Function—Create Certificate from Existing Certificate


Export a Certificate with Private and Public Keys

To export both the public and private keys with the certificate:

Example: exporting a certificate with private and public keys

This example exports both keys with the certificate:

TSS EXPORT(TESTXXX) DIGICERT(TESTSYS) 
                    DCDSN('TESTSYS.CERT.PKCS')
                    FORMAT(PKCS12DER)
                    PKCSPASS(user_specified_password)
TSS ADD(acid) DIGICERT(TESTSYS)
              LABELCERT(certificate label)
              DCDSN('TESTSYS.CERT.PKCS') 
              TRUST PKCSPASS(user_specified_password)