The object contains only the open half of the key pair

After installing the certificate on the client side, I get the exception "The object contains only the public half of the key pair. A private key must also be provided." My application is a VC # .NET application running on the ASP.NET platform. The application also uses WSE 2.0 to import certificates into SOAP requests.

After researching, I found that this exception is of type System.Security.Cryptography.CryptographicException.

I am sure that all of my WSE settings are configured correctly, since I was able to find a similar certificate on the subject-distinguished name. Any ideas would be highly appreciated.

+5
source share
2 answers

. , . , . .

, :

  • ?
  • youf ?

, , Windows. :

  • "" Windows "".
  • mmc Open:. OK
  • "/ " "".
  • "".
  • "" " ". "".
  • " ". "".
  • " ". "".
  • "".
  • "".
    1. node .
    2. , . , : " , ".

, :

  • Windows.
  • C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys .
  • , , WSE .
  • "" "".
  • "" ASPNET "" .
  • :      1. , MachineKeys , . - . MachineKeys , .      2. , ASPNET, .
+12

: System.Security.Cryptography.CryptographicException, Object , , .

: / Visual Studio IIS Express, - IIS, " ".

WSE3 CertificateTool, , ASP .

, , , IIS, -, , , + .

, , " / ".

WSE3 CustomPolicyAssertion, #.NET:

clientToken = X509TokenProvider.CreateToken(StoreLocation.LocalMachine, 
   StoreName.TrustedPeople, "soap.partnersite.com", X509FindType.FindBySubjectName);

, .

0

All Articles