After Generating a Digital Certificate, How Does One Export It?

Document ID : KB000017929
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

After generating a digital certificate, how does one export it and be sure the private key is in there to be added to other key rings?

Solution:

Use the following format of the EXPORT command to export a digital certificate with its private key:


 	TSS EXPORT(USERA) DIGICERT(USERCERT) DCDSN(Your.export.dataset) FORMAT 	(PKCS12DER) PKCSPASS(PKCSpassword)

And add it (import it) to an acid on another location (ie a different cpu):


 	TSS ADD(USERA) DIGICERT(USERCERT) DCDSN(Your.export.dataset) LABLCERT(USERA_CERT) PKCSPASS(PKCSpassword) TRUST 

Then add it to the required key ring with:


 	TSS ADD(USERB) KEYRING(USRBRING) RINGDATA(USERA,USERCERT) DEFAULT USAGE(PERSONAL)