Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

problem installing/using x509 certificate

$
0
0

Hello - I used makecert to generate a temporary x509 certificate using the following command:

makecert -n "CN=RootCATest" -r -sv RootCATest.pvk RootCATest.cer

When I double-click the certificate that was generated, an "Install Certificate..." button is displayed at the bottom of the General tab.  When I click the "Install Certificate" button the system leads me through a Certificate Import Wizard. I select all the defaults including "Automatically select the certificate store based on the type of certificate".

At the end of this process the Certificate Import Wizard displays an alert "The import was successful."  However, if I double-click on the certificate again the top of the General tab still says "Certificate Information - This CA Root certificate is not trusted. To enable trust, install this certificate in the Trusted Root Certification Authorities store."

The subject of the certificate is RootCATest. Here is the serviceCertificate from my service web.config:

<serviceCertificate findValue="RootCATest" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="My" />

When I try to update the service reference from my consol app the system returns the following error:

"Cannot find the x.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'LocalMachine', FindType 'FindBySubjectName', FindValue 'RootCATest'."

What am I missing here?


Viewing all articles
Browse latest Browse all 555

Trending Articles