I have an application which is reading a PFX file and sent across a network for authentication.
I have developed the application and the application is working perfectly when run from VisualStudio 2013. When run it gets loaded with IIS Express and everything works perfectly including reading the pfx file.
Now, When I publish this into my webserver(IIS7) its unable to fetch the Certificate from the PFX file. The error which I get is
Failed to extract the X509 certificate
I tried giving Permissions to files, removed authentication and almost tried everything which might block IIS from reading the file. But still im getting this error.
Why is it behaving like this, ie It works perfectly in IIS Express and doesn't work form IIS7.