Link to home
Start Free TrialLog in
Avatar of NicolaT
NicolaT

asked on

Error importing key, Object already exists

Hi there,

I renewed my Comodo code signing certificate and generated my pfx file from the pvk by using:

Pvk2Pfx –pvk mypvkfile.pvk –pi mypvkpassword –spc myspcfile.spc –pfx mypfxfile.pfx –po pfxpassword –f

When I used this pfx file to sign the assembly in Visual Studio I got "Error Importing Key, Cannot find the certificate and private key for decryption".

So, I followed this link

https://support.comodo.com/index.php_m=knowledgebase&_a=viewarticle&kbarticleid=1078

which created another pfx file for me which has a different name to the first pfx file in this scenario.

Now when I use this pfx file to sign the assembly I get: "Error Importing Key, Object already exists."

Any assistance with this is greatly appreciated. I had no problems using the Comodo cert last year just with this new one.

Regards,
Nicola.
ASKER CERTIFIED SOLUTION
Avatar of Paranormastic
Paranormastic
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of NicolaT
NicolaT

ASKER

Hi Paranormastic,

Sorry for the late response. I was out of action there for a while. I had a look at your solution this week and it worked a treat.

Many thanks,
Nicola.