Web service accessing Public Certificate RRS feed

  • Question

  • I have a SOAP web service running on IIS 7. There is a public certificate being stored in the Local Computer->Personal certificate store.

    When a connection is made by a customer, they sign the SOAP message with their own Certificate. However the web service always fails with the following message: -

    Microsoft.Web.Services2.Security.SecurityFault: Referenced security token could not be retrieved at Microsoft.Web.Services2.Security.MessageSignature.CheckSignature()

    The only way I have been able to get this to work is to run the Application Pool as a local user rather than ApplicationPoolIdentity.

    Can anybody tell me how I allow ApplicationPoolIdentity to access the certificate? All I can find online is how to allow it access to private keys, but this certificate has no private keys.

    Any help about this or where it should be posted would be much appreciated.

    Jason Clogg

    Regards, Jason Clogg

    Wednesday, May 17, 2017 9:34 AM


  • I'd ask in microsoft official web development forums over here.





    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    • Proposed as answer by Just Karl Wednesday, May 17, 2017 7:50 PM
    • Marked as answer by Just Karl Wednesday, May 24, 2017 3:12 PM
    Wednesday, May 17, 2017 1:22 PM