ASP.Net had the correct permissions to access the file - and it was reading it fine which could be seen by viewing the X509Certificate2 properties.
Turned out installing it into the certificate store worked, then I could use the file. Thanks guys!! From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Shane Nall Sent: Thursday, 8 April 2010 1:31 PM To: ozDotNet Subject: Re: HttpWebRequest and client certificates over HTTPS Sorry I thought maybe you needed to upload a copy to the server first... anyway... why not try installing the cert into the store where the ASP.Net user account for the web session can retrieve it? Or... yeah... give the ASP.Net user access to that folder. On 8 April 2010 13:19, David Connors <da...@codify.com> wrote: On 8 April 2010 13:08, Michael Lyons <maill...@ittworx.com> wrote: Just partially fixed my problem. Turns out that it is because I'm using ASP.Net and its not adding the client certificates. If I run it as a console application the certificate is passed through correctly. Does anyone know how to get this working in ASP.Net now or of any workarounds for ASP.Net? At a random guess - what do the filesystem permissions look like on the location where you are storing the .cer? -- David Connors (da...@codify.com) Software Engineer Codify Pty Ltd - www.codify.com Phone: +61 (7) 3210 6268 | Facsimile: +61 (7) 3210 6269 | Mobile: +61 417 189 363 V-Card: https://www.codify.com/cards/davidconnors Address Info: https://www.codify.com/contact -- Cheers, Shane DISCLAIMER NOTICE The contents of this email are confidential. If you are not the intended recipient, you must not disclose, copy or use the contents in anyway. If you have received this email in error, please delete it and notify us by reply email. It is the recipient's responsibility to screen this message and any attachments for computer viruses. Thank you.