VERIFIED SOLUTION i

Resolve Certificate error during send email operation - Portrait Dialogue

Portrait Dialogue Version: 6.0.0.267

Secure Email connection 

Issue

Certificate errors imply something has gone wrong when securing the connection, and usually indicates an invalid or expired certificate. 
In this case, the customers connection to their bulk email provider that had previously been secured at the start of their session, became invalidated mid-session due to the expiry of the bulk email provider's certificate.

In the example given below the connection was secured until 16:00 at which time the existing certificate expired and the emails were unable to be sent securely resulting in an error.
These errors were appearing in the Portrait Dialogue (PD) log files as:
 
Exception: The remote certificate is invalid according to the validation procedure
Time: 2015-09-16 16:36:39
Module: C:\PROGRA~2\PST\MILLIO~1\DIALOG~1\MHDIAL~1.DLL
Version: 6.0.0.267
Filedate: 2013-06-04 09:24:02
Instancename: Instance_Name
Username: internal
ProcessID: 3912
ThreadID: 1688
Exceptiontype: EOleException
Unit: MHChannelAccessLayer.pas
Procedure: MHChannelAccessLayer.TMHChannelAccessLayer.SendMessages
Line: 277
SQLStatement:

[027FC628] MHChannelAccessLayer.TMHChannelAccessLayer.SendMessages (Line 275, "MHChannelAccessLayer.pas")
[027FC628] MHChannelAccessLayer.TMHChannelAccessLayer.SendMessages (Line 275, "MHChannelAccessLayer.pas")
[032A68BF] MHInternalServiceSupport.TMHInternalServiceSupport.SendMessages (Line 567, "MHInternalServiceSupport.pas")
--------------------------------------------------------------------------------


Exception: The remote certificate is invalid according to the validation procedure.
Time: 2015-09-16 16:36:49
Module: C:\Windows\SysWOW64\dllhost.exe
Version: 6.1.7600.16385 (win7_rtm.090713-1255)
Filedate: 2009-07-14 03:14:18
Instancename: Instance_Name
Username: internal
ProcessID: 3912
ThreadID: 1688
Exceptiontype: AuthenticationException
Unit:
Procedure:
Line: 0
SQLStatement:

at MHSendMail.SendEmailPlugin.CheckSmtpConnection(SmtpClient smtpClient) in d:\Build\467\Sources\DotNet\DialogServerPlugins\SendEmailPlugin\SendEmailPlugin.cs:line 718
at MHSendMail.SendEmailPlugin.SendMessages(IMHOutputChannelInfo OutputChannelInfo, IMHChannelMessageContainer OutputMessages) in d:\Build\467\Sources\DotNet\DialogServerPlugins\SendEmailPlugin\SendEmailPlugin.cs:line 160
--------------------------------------------------------------------------------


Exception: The remote certificate is invalid according to the validation procedure
Time: 2015-09-16 16:36:49
Module: C:\PROGRA~2\PST\MILLIO~1\DIALOG~1\MHDIAL~1.DLL
Version: 6.0.0.267
Filedate: 2013-06-04 09:24:02
Instancename: Instance_Name
Username: internal
ProcessID: 3912
ThreadID: 1688
Exceptiontype: EOleException
Unit: MHChannelAccessLayer.pas
Procedure: MHChannelAccessLayer.TMHChannelAccessLayer.SendMessages
Line: 277
SQLStatement:

[027FC628] MHChannelAccessLayer.TMHChannelAccessLayer.SendMessages (Line 275, "MHChannelAccessLayer.pas")
[027FC628] MHChannelAccessLayer.TMHChannelAccessLayer.SendMessages (Line 275, "MHChannelAccessLayer.pas")
[032A68BF] MHInternalServiceSupport.TMHInternalServiceSupport.SendMessages (Line 567, "MHInternalServiceSupport.pas")
--------------------------------------------------------------------------------

 

Cause

This was caused by the expiration of the bulk providers security certificate that had been used when securing the initial connection.


 

Resolution

UPDATED: September 8, 2017
The bulk email provider was asked to replace their certificate before the Secure Email connection was re-established.

In this case, their provider was a partner, so we were able to assist with obtaining the new certificate.