WCF部署问题两则
(1)Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'CurrentUser', FindType 'FindBySubjectName', FindValue 'FeedServiceServer'.
Must put the certificate into LocalMachine like:
makecert -r -pe -n "CN=FeedServiceServer" -ss My -sr LocalMachine -sky exchange
If you run this command in Windows 7, run the cmd as administrator.
(2) The certificate 'CN=FeedServiceServer' must have a private key that is capable of key exchange. The process must have access rights for the private key.
winhttpcertcfg -g -c LOCAL_MACHINE\My -s FeedServiceServer -a ASPNET
winhttpcertcfg -g -c LOCAL_MACHINE\My -s FeedServiceServer -a "NETWORK SERVICE"
Must put the certificate into LocalMachine like:
makecert -r -pe -n "CN=FeedServiceServer" -ss My -sr LocalMachine -sky exchange
If you run this command in Windows 7, run the cmd as administrator.
(2) The certificate 'CN=FeedServiceServer' must have a private key that is capable of key exchange. The process must have access rights for the private key.
winhttpcertcfg -g -c LOCAL_MACHINE\My -s FeedServiceServer -a ASPNET
winhttpcertcfg -g -c LOCAL_MACHINE\My -s FeedServiceServer -a "NETWORK SERVICE"