App.config access to x509

Hi all

Given x509 directory define in the App.config file below
How can I access the certificate in C# application
I have something like this :   X509SecurityToken x509Token = new X509SecurityToken(x509Certificate);
But its seems not to be working..

Thanks in Advance
<microsoft.web.services2>
		<security>
			<x509 storeLocation="LocalMachine"
				  verifyTrust="true"
				  allowTestRoot="true" />
		</security>
	</microsoft.web.services2>

Open in new window

ZURINETAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
dexterrajeshConnect With a Mentor Commented:
0
All Courses

From novice to tech pro — start learning today.