Verify that method calls are done via SSL

Discussion in 'ASP .Net Security' started by Adriano Labate, Sep 5, 2007.

  1. Hello,

    I have to verify that all method calls to a web service are done via an
    encrypted communication (SSL / HTTPS).

    Could someone suggest me a solution to do that check from the code of my web
    service?

    Thank you.
    Adriano
     
    Adriano Labate, Sep 5, 2007
    #1
    1. Advertising

  2. you can check that with

    HttpContext.Current.Request.IsSecureConnection


    -----
    Dominick Baier (http://www.leastprivilege.com)

    Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

    > Hello,
    >
    > I have to verify that all method calls to a web service are done via
    > an encrypted communication (SSL / HTTPS).
    >
    > Could someone suggest me a solution to do that check from the code of
    > my web service?
    >
    > Thank you.
    > Adriano
     
    Dominick Baier, Sep 5, 2007
    #2
    1. Advertising

  3. Thank you. That's what I was looking for.
    Adriano

    "Dominick Baier" <dbaier@pleasepleasenospam_leastprivilege.com> a écrit dans
    le message de news: ...
    > you can check that with
    >
    > HttpContext.Current.Request.IsSecureConnection
    >
    >
    > -----
    > Dominick Baier (http://www.leastprivilege.com)
    >
    > Developing More Secure Microsoft ASP.NET 2.0 Applications
    > (http://www.microsoft.com/mspress/books/9989.asp)
    >
    >> Hello,
    >>
    >> I have to verify that all method calls to a web service are done via
    >> an encrypted communication (SSL / HTTPS).
    >>
    >> Could someone suggest me a solution to do that check from the code of
    >> my web service?
    >>
    >> Thank you.
    >> Adriano

    >
    >
     
    Adriano Labate, Sep 6, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Honne Gowda A
    Replies:
    2
    Views:
    885
    Karl Heinz Buchegger
    Oct 31, 2003
  2. andy6
    Replies:
    2
    Views:
    766
    andy6 via DotNetMonster.com
    Jun 9, 2006
  3. skrobul
    Replies:
    0
    Views:
    893
    skrobul
    May 18, 2009
  4. Max Williams
    Replies:
    6
    Views:
    378
    Max Williams
    May 8, 2011
  5. Zhidian Du
    Replies:
    0
    Views:
    160
    Zhidian Du
    Feb 21, 2004
Loading...

Share This Page