Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. certificate setup question

certificate setup question

Scheduled Pinned Locked Moved WCF and WF
helpquestioncsharpwcfcryptography
3 Posts 2 Posters 15 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 3919049
    wrote on last edited by
    #1

    Hello - I've imported a certificate into my "Trusted Root Certification Authority Store." The certificate icon has a tiny key image in the upper left-hand corner so the certificate appears to be associated with a private key. However, when I try to add a reference to the WCF service that uses this certificate the system returns the following error message: "It is likely that certificate 'CN=RootCATest' may not have a private key that is capable of key exchange or the process may not have access rights for the private key." Any idea what the problem might be? Based on googling it appears I should be able to right click the cert in my MMC and select "All Tasks" > "Manage Private Keys". However, this menu option is not available for my certificate for some reason. My understanding was that if the cert is in the proper store and it has the key image in the top left corner then everything should be go but this does not appear to be the case....

    J 1 Reply Last reply
    0
    • M Member 3919049

      Hello - I've imported a certificate into my "Trusted Root Certification Authority Store." The certificate icon has a tiny key image in the upper left-hand corner so the certificate appears to be associated with a private key. However, when I try to add a reference to the WCF service that uses this certificate the system returns the following error message: "It is likely that certificate 'CN=RootCATest' may not have a private key that is capable of key exchange or the process may not have access rights for the private key." Any idea what the problem might be? Based on googling it appears I should be able to right click the cert in my MMC and select "All Tasks" > "Manage Private Keys". However, this menu option is not available for my certificate for some reason. My understanding was that if the cert is in the proper store and it has the key image in the top left corner then everything should be go but this does not appear to be the case....

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      I have first hand seen an instance where the certificate displayed the behavior you stated yet nothing seemed to get the private key available. Deleting the cert and re-installing fixed the problem.

      Member 3919049 wrote:

      I try to add a reference to the WCF service t

      In windows 7/2008 you have to jump through hoops to make the cert have the correct permissions to be visible.

      Member 3919049 wrote:

      However, this menu option is not available for my certificate for some reason.

      I think I resolved this by running MMC as admin. But if all else fails there is a way to do it via the command line. You will need to google the specifics but the steps are. 1. Determine the file where the private key is stored (there is a tool to do this.) 2. Use or a command line tool to change the permissions on the file.

      M 1 Reply Last reply
      0
      • J jschell

        I have first hand seen an instance where the certificate displayed the behavior you stated yet nothing seemed to get the private key available. Deleting the cert and re-installing fixed the problem.

        Member 3919049 wrote:

        I try to add a reference to the WCF service t

        In windows 7/2008 you have to jump through hoops to make the cert have the correct permissions to be visible.

        Member 3919049 wrote:

        However, this menu option is not available for my certificate for some reason.

        I think I resolved this by running MMC as admin. But if all else fails there is a way to do it via the command line. You will need to google the specifics but the steps are. 1. Determine the file where the private key is stored (there is a tool to do this.) 2. Use or a command line tool to change the permissions on the file.

        M Offline
        M Offline
        Member 3919049
        wrote on last edited by
        #3

        including the following parameter with makecert fixed the issue: -sky exchange

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups