Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 341
  • Last Modified:

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

0
ZURINET
Asked:
ZURINET
1 Solution
 
dexterrajeshCommented:
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now