Unable to open a CSP provider with the correct private key
From: Dennis Homann (DennisHomann_at_discussions.microsoft.com)
Date: 11/26/04
- Previous message: Abu Aly: "Encrypted folder or files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 26 Nov 2004 06:31:04 -0800
I am trying to sign an .exe using the signcode.exe tool. The private key is
located in the system store "my". The signing process works just fine when I
work locally:
signcode.exe -cn <CNofTheCERT> -t <timestampURL> <exePath>
However we want to automate the build on a dedicated machine. The build
process is initiated by running a batch file remotely via SSH. Now, when I
authenticate using my password, everything works fine. But to run automatic
builds we use public key authentication. In that case, signcode.exe fails
with the following error message:
Error: Unable to open a CSP provider with the correct private key
Error: Signing Failed. Result = 80092006, (-2146885626)
Since the only difference is the authentication via password, I assume
there's something wrong with the security token? Somewhere I read that it
might be a problem to access a user's certificate store without password
authentication, so I imported the certificate and private key into the local
machine store. Again,
signcode.exe -cn <CNofTheCERT> -r localMachine -s my -t <timestampURL>
<exePath>
works locally, but not remotely.
Does anyone has a hint what the reason could be? Is there any other way to
sign code on a remote machine without having to enter a password (I will give
up on SSH if there is a better way).
Thanks,
Dennis
- Previous message: Abu Aly: "Encrypted folder or files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|