• פוסטים אחרונים
    • תגיות
    • משתמשים
    • קבוצות
    • חיפוש
    • נטפרי-וויקי
    • En
    • התחברות

    MailKit - The server's SSL certificate could not be validated

    מתוזמן נעוץ נעול הועבר כללי
    2 פוסטים 2 כותבים 150 צפיות 2 עוקבים
    טוען פוסטים נוספים
    • מהישן לחדש
    • מהחדש לישן
    • הכי הרבה הצבעות
    תגובה
    • תגובה כנושא
    התחברו כדי לפרסם תגובה
    נושא זה נמחק. רק משתמשים עם הרשאות מתאימות יוכלו לצפות בו.
    • D מנותק
      DMN
      נערך לאחרונה על ידי

      אני מנסה לשלוח מייל מהקוד, שימוש בספריה של MailKit, ברשת בלי נטפרי עובד תקין והמייל נשלח. ברשת נטפרי אני מקבלת את השגיאה הבאה. מה אפשר לעשות?

      Error Error sending mail. Exception: MailKit.Security.SslHandshakeException: An error occurred while attempting to establish an SSL or TLS connection.

      The server's SSL certificate could not be validated for the following reasons:
      • The server certificate has the following errors:
      • The revocation function was unable to check revocation for the certificate.

      ---> System.Security.Authentication.AuthenticationException: The remote certificate was rejected by the provided RemoteCertificateValidationCallback.
      at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
      at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
      at System.Net.Security.SslStream.AuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions)
      at MailKit.Net.Smtp.SmtpClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, Boolean doAsync, CancellationToken cancellationToken)
      --- End of inner exception stack trace ---
      at MailKit.Net.Smtp.SmtpClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, Boolean doAsync, CancellationToken cancellationToken)
      at NLog.MailKit.MailTarget.ProcessSingleMailMessage(IList`1 events)

      צדיק תמיםצ תגובה 1 תגובה אחרונה תגובה ציטוט 0
      • צדיק תמיםצ מנותק
        צדיק תמים @DMN
        נערך לאחרונה על ידי

        @dmn אני לא מכיר את הספריה, אבל אולי הלינקים הבאים יעזרו:
        https://github.com/jstedfast/MailKit/issues/1251#issuecomment-940078832
        https://github.com/jstedfast/MailKit/issues/511
        https://github.com/jstedfast/MailKit/issues/1243

        תגובה 1 תגובה אחרונה תגובה ציטוט 0
        • פוסט ראשון
          פוסט אחרון