Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. SSL Connection?

SSL Connection?

Scheduled Pinned Locked Moved ASP.NET
securityhelpcsharpasp-netcom
5 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jason Weibel
    wrote on last edited by
    #1

    Using a .net library (framework 1.1) I post xml to a https url which uses a certificate for authentication. When my library is called from a console application everything runs great. When it is run via asp.net I get the following error: The underlying connection was closed: Could not establish secure channel for SSL/TLS. Using Marc Merritt's 'Windows Impersonation using C#' article as a reference I impersonated myself in an attempt to resolve the problem. This was unsuccessful. I appreciate any direction you can provide in resolving this issue. Thank you,

    Jason

    N 1 Reply Last reply
    0
    • J Jason Weibel

      Using a .net library (framework 1.1) I post xml to a https url which uses a certificate for authentication. When my library is called from a console application everything runs great. When it is run via asp.net I get the following error: The underlying connection was closed: Could not establish secure channel for SSL/TLS. Using Marc Merritt's 'Windows Impersonation using C#' article as a reference I impersonated myself in an attempt to resolve the problem. This was unsuccessful. I appreciate any direction you can provide in resolving this issue. Thank you,

      Jason

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      Jason, What operating system are you running this example on where it fails? If it's Windows 2000 LogonUser requires the SE_TCB_NAME priviledge. You will need to give the ASPNET user account Act as Part of the Operating System user right through the Local System Policy. This is not needed with Windows XP and Windows 2003.

      - Nick Parker Microsoft MVP - Visual C#
      My Blog | My Articles

      J 3 Replies Last reply
      0
      • N Nick Parker

        Jason, What operating system are you running this example on where it fails? If it's Windows 2000 LogonUser requires the SE_TCB_NAME priviledge. You will need to give the ASPNET user account Act as Part of the Operating System user right through the Local System Policy. This is not needed with Windows XP and Windows 2003.

        - Nick Parker Microsoft MVP - Visual C#
        My Blog | My Articles

        J Offline
        J Offline
        Jason Weibel
        wrote on last edited by
        #3

        I'm running Windows XP Professional Service Pack 2 - thoughts?

        Jason

        1 Reply Last reply
        0
        • N Nick Parker

          Jason, What operating system are you running this example on where it fails? If it's Windows 2000 LogonUser requires the SE_TCB_NAME priviledge. You will need to give the ASPNET user account Act as Part of the Operating System user right through the Local System Policy. This is not needed with Windows XP and Windows 2003.

          - Nick Parker Microsoft MVP - Visual C#
          My Blog | My Articles

          J Offline
          J Offline
          Jason Weibel
          wrote on last edited by
          #4

          Looking at the LogonUser could the problem be with the dwLogonType (LOGON32_LOGON_INTERACTIVE) I am using?

          Jason

          1 Reply Last reply
          0
          • N Nick Parker

            Jason, What operating system are you running this example on where it fails? If it's Windows 2000 LogonUser requires the SE_TCB_NAME priviledge. You will need to give the ASPNET user account Act as Part of the Operating System user right through the Local System Policy. This is not needed with Windows XP and Windows 2003.

            - Nick Parker Microsoft MVP - Visual C#
            My Blog | My Articles

            J Offline
            J Offline
            Jason Weibel
            wrote on last edited by
            #5

            Problem resolved - the certificate was setup for the current user but not for the local computer. Thanks for your help; do you happen to know of a good article on certificates?

            Jason

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups