What did I do?
I took the certificate and put it in the project directory so the C++ console application can read the bytes. I ran the program via Visual Studio 2013 vs. the command line. You all can achieve the same results by running the program in the command line. The program reads the certificate , new certificate name and requires the password in order to renew the cert. The program renews the cert for 5 years. This is hard coded in the program and can be changed. I don’t recommend anything over 5 years. The certificate can be imported and exported in the certificate manager with no problems and used for your specific purpose. Easy, easy… I hope this helps someone out there.
printf("renewcert <PFX File> <new cert filename> <new cert friendly name> [optional]<password>\n"); printf("Example: renewcert oldcert.pfx newcert.pfx \"CN=MyNewCert\" MySuperSecretPassword");