c# - WCF Error : 'It is likely that certificate 'my cert' may not have a private key that is capable of key exchange -


I have a WCF service I am trying to host on my production web server (IIS 6). I set up the web and closed our circuit on the web when I try to browse service URLs, I get the following error in the event log:

Exception Message It is possible that the certificate 'CN = . Maidommen, OU = Safe Link SSL Wildcard, OU = IT, C = US 'Can not have a private key that is capable of major exchange or the process does not have access to the private key. Please see the internal exception for the extension .. --- & gt; System.ArgumentException: It is likely that the certificate 'CN = .mydomain.com, OU = Secure Link SSL Wildcard, OU = IT, O = Maidoman, C = U.S.' Does not have a private key that is capable of key exchange or process can not have access rights for the private key Please see the internal exception for the extension. --- & gt; System.Security.Cryptography.CryptographicException: Handle is invalid.

I have confirmed ASP.Net 1.1, 2, and 4 are set to 'Allow' in 'Web service extension'. I have confirmed the proof that IIS has been established and it shows that 'you have a private key that matches this certificate'. In addition, the executed permissions are set to 'Script and Executable'.

I had this problem, and it is known that the service under which service was going on The certificate was not allowed to access the private key.

Here are the steps I used to solve it:

  • Start Cetificate Manager. Activate this by running MMC, activate [File] - [Add / Remove Snap-In ...], then add "Certificates", select "Computer Account" and "Local Computer" in the next wizard dialog. In the certificate manager, right-click on the respective certificate and activate [all tasks] - [Manage private key]
  • This gives you a permissions window
  • Li>
  • Add account name or group. >

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -