Cannot find the X.509 certificate when browsing wcf services in browser

I Published a service on IIS 7. I used a self signed certificate named testCertificate. when I browse the service in the browser I get this error: Cannot find the X.509 certificate using the following search criteria: StoreName 'Root', StoreLocation 'LocalMachine', FindType 'FindBySubjectName', FindValue 'testCertificate'. I used this code in my Web.Config file:

    <serviceCredentials>                        
        <serviceCertificate findValue="testCertificate" storeLocation="LocalMachine" storeName="Root" x509FindType="FindBySubjectName" />
        <userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="MyService.Authentication,MyService" />
    </serviceCredentials>

And another point is when I referesh the browser page I get this error: HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. could any one help me please?

Answers


You need to add the X509 certificate in the store location

Store --> Root --> LocalMachine

Type mmc in the Run to add certificate


Need Your Help

Textmate Code Completion Question

ide development-environment textmate

I know the ESC key does code completion, but is there a way to get a pop-up(tool-tip I guess) that shows you all the possible choices for a piece of code? As an example, it would be nice when writ...

Python: Checking a list with regex, filling in blanks

python regex list missing-data

I've tried to find ways to do this and searched online here, but cannot find examples to help me figure this out.