Issue with Self Signed Cert in WCF - Must have Private Key

后端 未结 2 1666
谎友^
谎友^ 2021-01-12 00:04

I am creating a WCF service hosted within IIS7 on Windows Vista SP1. I am getting the following error:

The certificate \'CN=SignedByLocalHost\' must have a private k

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-12 00:27

    You can use IIS 7.0/7.5 Just Start->Run ->inetmgr Select the server Under "Security" panel, go to "Server Certificates" In the left pane click - "Create Self Signed Certificate" and complete the process The crtfiticate will get installed in LocalMachine StoreLocation under Personal storename. Now use this certificate in your WCF service and you will not face this error

提交回复
热议问题