Send-MailKitMessage icon indicating copy to clipboard operation
Send-MailKitMessage copied to clipboard

May you can create a dev branch?

Open xRushG opened this issue 1 year ago • 2 comments

I have added three more parameters to the code I needed. You can find it in my Git fork. Should I push the pull request to your master branch, or would you prefer I don't?

  1. disable CheckCertificateRevocation. Occasional downtimes, network issues, or offline servers can make it impossible to check the revocation status of certificates. [switch] -DisableCertificateRevocation

  2. Accept all certificates regardless of errors (not recommended in production, good for debug.) [switch] -ServerCertificateValidationCallback

  3. To authenticate the client to the server using a certificate X509Certificate2[] -ClientCertificates

xRushG avatar Jun 28 '24 19:06 xRushG

God request @xRushG. i have similar problems with SSL validation. :)

can't parse JSON.  Raw result:

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:
• An intermediate certificate has the following errors:
  • The revocation function was unable to check revocation for the certificate.
  • The revocation function was unable to check revocation because the revocation server was offline.

@austineric. any plan for this?

urskog84 avatar Aug 09 '24 07:08 urskog84

Hey @urskog84

You can test it with my fork. There's only one commit from me, so you can easily see my changes. Compile and test it using the additional parameter -DisableCertificateRevocation. If that doesn't work, also add this parameter: -ServerCertificateValidationCallback.

I would be interested in your test results.

xRushG avatar Aug 09 '24 07:08 xRushG