long itsCertHdl;
long pcaCertHdl;
long newPcaCertHdl;
long newItsCertHdl;
itsCertHdl = C2xSecCertificateGetHandle("its"); // get original its certificate
pcaCertHdl = C2xSecCertificateGetHandle("pca"); // get original pca certificate
// create new pca certificate based on the original pca certificate
// validity is at least 24 hours from current simulation time
// share the same root with the original pca
newPcaCertHdl = C2xSecCertificateCreate(pcaCertHdl, 60*60*24);
// create new its certificate based on the original its certificate
// validity is at least 1 hour from current simulation time
// use the new pca certificate as signer of the new its certificate
newItsCertHdl = C2xSecCertificateCreate(itsCertHdl, 60*60, newPcaCertHdl);