Securing web service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?aGlsZXlq?=

    #1

    Securing web service

    Hi,

    I'm developing a web service that needs to communicate with a custom
    application on an intranet. There is also a configuration utility which may
    be run on a different server machine for setting up and altering parameters
    on the service. This configuration web application may be browsed to via
    intranet or internet.
    This is the first work I've done with web services, so sorry for any
    incorrect terminology or nonsense statements.

    The basic interface seems to be working, but I'm not sure how to secure
    communication to/from the service. The web service will be deployed to
    customers for internal use, so we don't have control over IIS settings and
    network setup (active directory, etc.) is unknown. Right now I have been
    testing with a custom SOAP extension that parses the response/requests and
    encrypts the body using a symmetric key. But this doesn't seem like a great
    solution since the key has to be stored somewhere on client and server
    machines or hardcoded. Also, the configuration utility can be accessed from
    a browser on a machine where this information is not stored. So is this a
    dead-end approach?

    SSL is attractive because of it's relative simplicity, but I'm not sure if
    this is an option. If I understand it correctly, server certificate request
    and IIS setup would have to be done on the eventual install machine aside
    from just installing the web service. Is there any way to use SSL without
    requiring this additional setup? For example, to make a package where it
    could all be configured during install?

    Are there any accepted best practice type approaches for securing web
    services in this type of situation? I've been looking, but most examples seem
    to be where the web service is hosted internally, so all that configuration
    can be taken care of.
    Any advice or references would be welcome.

    Jon

  • Spam Catcher

    #2
    Re: Securing web service

    =?Utf-8?B?aGlsZXlq?= <hileyj@discuss ions.microsoft. comwrote in
    news:C0B0E97B-DED5-49C1-A0F5-82524AB0C30A@mi crosoft.com:
    The basic interface seems to be working, but I'm not sure how to
    secure communication to/from the service. The web service will be
    deployed to customers for internal use, so we don't have control over
    IIS settings and network setup (active directory, etc.) is unknown.
    Microsoft Web Service Enhancements 3.0.

    It implements several standard security features - i.e. policies,
    certificates, etc. etc.

    Unfortunately the GUI setup tools don't always work properly with VS.NET
    2005 since Service Pack 1, but the framework itself is solid. I've used it
    several times.

    Comment

    • John Saunders [MVP]

      #3
      Re: Securing web service

      "Spam Catcher" <spamhoneypot@r ogers.comwrote in message
      news:Xns9999A15 10C9CBusenethon eypotrogers@127 .0.0.1...
      =?Utf-8?B?aGlsZXlq?= <hileyj@discuss ions.microsoft. comwrote in
      news:C0B0E97B-DED5-49C1-A0F5-82524AB0C30A@mi crosoft.com:
      >
      >The basic interface seems to be working, but I'm not sure how to
      >secure communication to/from the service. The web service will be
      >deployed to customers for internal use, so we don't have control over
      >IIS settings and network setup (active directory, etc.) is unknown.
      >
      Microsoft Web Service Enhancements 3.0.
      >
      It implements several standard security features - i.e. policies,
      certificates, etc. etc.
      >
      Unfortunately the GUI setup tools don't always work properly with VS.NET
      2005 since Service Pack 1, but the framework itself is solid. I've used it
      several times.
      Wouldn't you recommend WCF instead of WSE 3.0?
      --
      John Saunders [MVP]

      Comment

      • Spam Catcher

        #4
        Re: Securing web service

        "John Saunders [MVP]" <john.saunder s at trizetto.comwro te in
        news:usg5#WP6HH A.2312@TK2MSFTN GP06.phx.gbl:
        >Microsoft Web Service Enhancements 3.0.
        >>
        >It implements several standard security features - i.e. policies,
        >certificates , etc. etc.
        >>
        >Unfortunatel y the GUI setup tools don't always work properly with
        >VS.NET 2005 since Service Pack 1, but the framework itself is solid.
        >I've used it several times.
        >
        Wouldn't you recommend WCF instead of WSE 3.0?
        No not really - WSE 3.0 is production code and works with .NET 2.0 and
        Visual Studio 2005.

        WCF is not fully supported by VS.NET 2005 (integration is beta?) and
        requires .NET 3.0.

        Comment

        • John Saunders [MVP]

          #5
          Re: Securing web service

          "Spam Catcher" <spamhoneypot@r ogers.comwrote in message
          news:Xns999A76C 5797FDusenethon eypotrogers@127 .0.0.1...
          "John Saunders [MVP]" <john.saunder s at trizetto.comwro te in
          news:usg5#WP6HH A.2312@TK2MSFTN GP06.phx.gbl:
          >
          >>Microsoft Web Service Enhancements 3.0.
          >>>
          >>It implements several standard security features - i.e. policies,
          >>certificate s, etc. etc.
          >>>
          >>Unfortunate ly the GUI setup tools don't always work properly with
          >>VS.NET 2005 since Service Pack 1, but the framework itself is solid.
          >>I've used it several times.
          >>
          >Wouldn't you recommend WCF instead of WSE 3.0?
          >
          No not really - WSE 3.0 is production code and works with .NET 2.0 and
          Visual Studio 2005.
          >
          WCF is not fully supported by VS.NET 2005 (integration is beta?) and
          requires .NET 3.0.
          I agree about the VS integration, but how much integration do you need? And
          you don't run VS on production boxes. The code is production code.

          Also, the confusing fact is that .NET 3.0 is just a bunch of extra
          assemblies added to .NET 2.0. It should really have been called .NET 2.5.
          This, also, is released code, and has been released for about six months.

          YMMV, but I'd hesitate to recommend WSE for any new projects, since WCF is
          very much here, and ready for use in production.

          Of course, for a site that only ever works with "production plus one year"
          code, there are six months to wait.
          --
          John Saunders [MVP]

          Comment

          Working...