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

  • SEARCH
  • Home
  • 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 8167383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:10:34+00:00 2026-06-06T20:10:34+00:00

I have a WCF service that needs to be secured via https. The WCF

  • 0

I have a WCF service that needs to be secured via https. The WCF service server site and the clients consuming the WCF service are both self developed.

I generated a self-sign certificate and used it in my service with help from the following how-to article: http://msdn.microsoft.com/en-us/library/ff647171.aspx.

My service’s binding and behavior configuration is as follows:

<behaviors>
  <serviceBehaviors>
    <behavior name="SecureServiceBehavior">
      <serviceMetadata httpGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="false" />
      <serviceCredentials>
        <serviceCertificate findValue="CN={my server's ip address}" />
        <userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
          membershipProviderName="SqlMembershipProvider" />
      </serviceCredentials>
      <serviceAuthorization principalPermissionMode="UseAspNetRoles"
        roleProviderName="SqlRoleProvider" />
        <serviceThrottling maxConcurrentCalls="128"
                           maxConcurrentSessions="128"
                           maxConcurrentInstances="128" />
    </behavior>
  </serviceBehaviors>
</behaviors>
<bindings>
  <wsHttpBinding>
    <binding name="MyBinding">
       <security mode="TransportWithMessageCredential">
          <message clientCredentialType="UserName"/>
       </security>
    </binding>
  </wsHttpBinding>
</bindings>

All WCF clients are employees of our company that will access the system over the Internet by IP address. I will add the server’s certificate to the trusted certificate authorities of each client computer.

Is such a configuration secure enough?

  • 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-06-06T20:10:35+00:00Added an answer on June 6, 2026 at 8:10 pm

    I’m not sure if you understand what it means for a certificate to be secure.
    The thing is, you might say that all modern certificates are created equal. Modern hashing and encryption algorithms are freely available, and they’re all virtually unbreakable. What separates secure and insecure certificates are issues of trust.

    Certificates are created to identify trusted servers in a potentially hostile network. You might compare them to a police badge or an ID, though I guess there is a little bit more to it than that. As such, the primary questions regarding a certificate’s validity are:

    • Do I recognize the certificate at all? (Do I recognize the type of ID at all?)
    • Does the certificate match the server using it? (Does the photo resemble the bearer?)
    • Could the certificate have been compromised? (Could the ID have been stolen?)
    • Could the root CA have been compromised? (Could someone make a forged ID?)

    The problems in creating a secure certificate are analogous to the questions regarding its validity:

    • Installing the certificate on all clients meant to recognize the server.
    • Making sure the server matches the certificate
    • Securing the certificate, and the root CA.

    When all clients and servers are intimately aware of each other (such as being in the same company; your case), it is possible to use a self-signed certificate and manually install it on all clients so that they will recognize it. Since the server isn’t open for external requests (from just anyone), security isn’t an issue either. So, in short, as long as you abide by the standard security guidelines, a self-signed certificate is fine, in your case.

    The problem occurs when you must identify your server to external visitors. For example, if I wanted to consume your web service, my computer wouldn’t have any notion of the certificate you’re using (since a self-signed certificate must be explicitly installed on each computer that needs to be aware of it), so the https functionality would be useless. In this case, you’ll have to obtain a certificate from a widely recognized CA (which probably costs money). This wouldn’t be any more intrinsically secure than a self-signed certificate, but it would be much more trustworthy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF service that needs to be secured to be consumed by
I have a WCF service that needs to notify it's clients when changes occur
I have a WCF service that needs to hosted using basicHttpBinding using SSL. So
I have a WCF service that needs to expose a custom collection to it's
I have the following data model: I am writing a WCF service that needs
I have a WCF service that I am calling from multiple clients. I need
I have a WCF service that needs to know the Principal of the calling
I have created a WCF service that needs to be hosted in a Window
I have a WCF service that is using a custom UsernamePasswordValidator. The validator needs
We have a WCF service that we recently switched from self-hosting to IIS-hosted. It

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.