Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4053694
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:28:48+00:00 2026-05-20T14:28:48+00:00

I have a WCF Service that uses a X.509 certificate as client credentials. Most

  • 0

I have a WCF Service that uses a X.509 certificate as client credentials. Most of these credentials do not require a password for using it, just for installing it.

But now, a client of ours has a certificate that requires a password to be entered every time it’s used (ie. every time the service is running). This service calls another service n times a day, but fails if the certificate cannot be validated.

Until now we have asked our clients to order (and pay for) a new certificate every time we’ve had this problem, but both me and our clients are tired of going through this every time. I have not made the service myself, and don’t have much any experience with WCF and services.

What I would like to know is: Is it possible to enter this password into our configuration file along with all the other information about the certificate?

Here is a part of the XML configuration for the service:

<configuration>
  <system.serviceModel>
    <client>
      <endpoint
        address="***"
        binding="basicHttpBinding"
        bindingConfiguration="***"
        behaviorConfiguration="HTTPSEndpoint"
        contract="***"
        name="***" />
    </client>
    <bindings>
      <basicHttpBinding>
        <binding
          name="***"
          sendTimeout="00:05:00"
          maxBufferSize="2147483647"
          maxReceivedMessageSize="2147483647" >
          <readerQuotas maxStringContentLength="2147483647" />
          <security mode="Transport">
            <transport clientCredentialType="Certificate" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <behaviors>
      <endpointBehaviors>
        <behavior name ="HTTPSEndpoint">
          <clientCredentials>
            <clientCertificate
              findValue="***"
              storeLocation="LocalMachine"
              storeName="My"
              x509FindType="FindBySubjectName"/>
          </clientCredentials>
        </behavior>
      </endpointBehaviors>
    </behaviors>
  </system.serviceModel>
</configuration>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T14:28:48+00:00Added an answer on May 20, 2026 at 2:28 pm

    The requirement to enter a password when retrieving the certificate from the certificate store on the client machine is because the certificate was imported with the “Enable strong private key protection” option checked:

    Importing a certificate to the certificate store.

    This is often set as part of standard server-hardening processes. It is intended for situations where the certificate authenticates a user with a remote system while the user is in attendance.

    Since the password prompt is due to the certificate import process, and is not an intrinsic property of the certificates, purchasing new certificates will not change anything.

    I know of no way to programmatically pass the password to the certificate store when retrieving it. However, if you think about it, even if you were successful you’d have to secure the said password somehow. You might encrypt the password to your .config file, but now you have to store the encryption key. And so on… Somewhere there will be a loose-end that makes “strong private key protection” pointless.

    Basically, your client can’t have it both ways: they can’t “enable strong private key protection”, and expect to not have to enter a password each time the client certificate is required. Much better that they store the certificate correctly.

    For an unattended client service, the most secure method for storing a client certificate is as follows:

    1. Run your client service under a specific account that has a cryptographically strong password.
    2. Remove the certificate from the LocalMachine store. Certificates installed in the LocalMachine store are accessible to any account running on the machine.
    3. Install the certificate in the CurrentUser store of the client service account. This will mean that the certificate is accessible only to the client service account. When the certificate is installed, be sure to uncheck the “Enable strong private key protection” option.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Data Service created using WCF that internally uses nHibernate. This WCF
I have WCF service that uses wsHttpBinding and authentication with certificate. I run this
I have a WCF service and a client, that uses a custom UserNamePasswordValidator for
I have client application that uses WCF service to insert some data to backend
I have a WCF service that uses X.509 certificates for authentication. What's the best
I have a wcf service that uses the .net System.AddIns framework to load assemblies
I have an wcf service that is hosted in II6. The service uses the
I have a WCF service that uses UserName authentication via ACS. This works great
I have a wcf service that uses callbacks with DualHttpBindings. The service pushes back
I have a WCF service that uses Message contract for request and replies of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.