Sending mail encounters AuthenticationException (remote certificateis invalid ...)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Afshar

    Sending mail encounters AuthenticationException (remote certificateis invalid ...)

    Hi there

    I'm sending email via a server that uses SSL. The server has
    Certification problems. Whenever I send email I got following
    exception:
    System.Security .Authentication .Authentication Exception: The remote
    certificate is invalid according to the validation procedure.

    How can I tell .NET to not check certfication and so get rid of this
    exception?


    Afshar
  • bruce barker

    #2
    Re: Sending mail encounters AuthenticationE xception (remote certificateis invalid ...)


    see the ICertificatePol icy interface to build a custom validation
    routine, and ServicePointMan ager.Certificat ePolicy to install it.

    -- bruce (sqlwork.com)

    Afshar wrote:
    Hi there
    >
    I'm sending email via a server that uses SSL. The server has
    Certification problems. Whenever I send email I got following
    exception:
    System.Security .Authentication .Authentication Exception: The remote
    certificate is invalid according to the validation procedure.
    >
    How can I tell .NET to not check certfication and so get rid of this
    exception?
    >
    >
    Afshar

    Comment

    • Afshar

      #3
      Re: Sending mail encounters AuthenticationE xception (remotecertific ate is invalid ...)

      On Apr 10, 3:58 am, bruce barker <nos...@nospam. comwrote:
      see the ICertificatePol icy interface to build a custom validation
      routine, and ServicePointMan ager.Certificat ePolicy to install it.
      >
      -- bruce (sqlwork.com)
      >
      >
      >
      Afsharwrote:
      Hi there
      >
      I'm sending email via a server that uses SSL. The server has
      Certification problems. Whenever I send email I got following
      exception:
      System.Security .Authentication .Authentication Exception: The remote
      certificate is invalid according to the validation procedure.
      >
      How can I tell .NET to not check certfication and so get rid of this
      exception?
      >
      Afshar- Hide quoted text -
      >
      - Show quoted text -
      Thanks bruce!!

      But I'm very newbie at theses topics. Would you give me some
      references on ICertificatePol icy and
      ServicePointMan ager.Certificat ePolicy?

      Afshar

      Comment

      Working...