Quantcast
Channel: Security forum
Viewing all articles
Browse latest Browse all 12072

Root Certificate Causes Error Dialog

$
0
0

I'm using sample project for Windows Phone that comes from "A Guide to Claims-based Identity and Access Control (2.0)". Whenever I use a desktop browser to the site within the sample (that has been published to the local IIS server) to browse to the root certificate directory (that is supposed to be used to download the certificate to the client device/phone) I get an error dialog box.

The error dialog box caption is "Invalid Public Key Security Object File". The message is "The file is invalid for use as the following: PKCS #7". I really not sure what this should mean and searching for an answer as provided little help.

When I use the Windows Phone Emulator to attempt to attempt to install the certificate on the device I get this error - "Index out of range." error where an attempt by the IIS (Website/Application)  to find the "Root Agency" certificate causes an exception from this section of code:

var certStore = new X509Store(StoreName.Root, StoreLocation.LocalMachine);
            certStore.Open(OpenFlags.MaxAllowed | OpenFlags.ReadOnly);
            var certificate = certStore.Certificates.Find(X509FindType.FindBySubjectDistinguishedName, "CN=Root Agency", false)[0];
I have done little or no work with certificates and signing before so any input or insight would be greatly appreciated.

Edward Walker


Viewing all articles
Browse latest Browse all 12072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>