winhttpcertcfg giving access to IIS user in Windows 7

前端 未结 7 1384
青春惊慌失措
青春惊慌失措 2020-12-24 10:14

I need to give access to the IIS user to a pfx certificate. The website is running under the App Pool under some user AppPoolUser. IIS automatically has the user name \"IIS

7条回答
  •  感动是毒
    2020-12-24 10:37

    When you install the application is also adds the documentation:

    C:\Program Files (x86)\Windows Resource Kits\Tools

    The following examples show some of the ways in which the configuration tool can be used.

    This command lists accounts that have access to the private key for the "MyCertificate" certificate in the "Root" certificate store of the LOCAL_MACHINE branch of the registry.

    winhttpcertcfg -l -c LOCAL_MACHINE\Root -s MyCertificate
    

    This command grants access to the private key of the "MyCertificate" certificate in the "My" certificate store for the TESTUSER account.

    winhttpcertcfg -g -c LOCAL_MACHINE\My -s MyCertificate -a TESTUSER
    

    This command imports a certificate and private key from a PFX file and extends private key access to another account.

    winhttpcertcfg -i PFXFile -c LOCAL_MACHINE\My -a IWAM_TESTMACHINE
    

    This command removes access to the private key for the IWAM_TESTMACHINE account with the specified certificate.

    winhttpcertcfg -r -c LOCAL_MACHINE\Root -s MyCertificate -a IWAM_TESTMACHINE
    

提交回复
热议问题