Email step is not working after we apply SSL certificate and version upgrade from 2018.5.4 to 2019.5.4

ruf-r
(Ramana Rainn) #1

We have recently applied SSL certificate for Octopus deploy to use https url and also upgraded the Octopus version from 2018.5.4 to 2019.5.4. Now email deployment step is failing with below error and we are using “Email Deployment Notification” template for this.

The step failed: Activity Email Deployment Status on the Octopus Server failed with error 'An error occurred while attempting to establish an SSL or TLS connection.

The SSL certificate presented by the server is not trusted by the system for one or more of the following reasons:

  1. The server is using a self-signed certificate which cannot be verified.
  2. The local system is missing a Root or Intermediate certificate needed to verify the server’s certificate.
  3. The certificate presented by the server is expired or invalid.

See https://github.com/jstedfast/MailKit/blob/master/FAQ.md#InvalidSslCertificate for possible solutions.
The remote certificate is invalid according to the validation procedure.’.

We were using html page for body of the email. As you can see below, we’ve updated the the Octopus URL to use https but still issues exists. Can you please help on this.

Before change:

Deployment of #{Octopus.Project.Name} #{Octopus.Release.Number} to #{Octopus.Environment.Name}

Initiated by: #{unless Octopus.Deployment.CreatedBy.DisplayName}#{Octopus.Deployment.CreatedBy.Username}#{/unless} #{if Octopus.Deployment.CreatedBy.DisplayName}#{Octopus.Deployment.CreatedBy.DisplayName}#{/if} #{if Octopus.Deployment.CreatedBy.EmailAddress} (#{Octopus.Deployment.CreatedBy.EmailAddress})#{/if}

#{if Octopus.Release.Notes}

Release notes

#{Octopus.Release.Notes}

#{/if}

Please approve here.

After change:

Deployment of #{Octopus.Project.Name} #{Octopus.Release.Number} to #{Octopus.Environment.Name}

Initiated by: #{unless Octopus.Deployment.CreatedBy.DisplayName}#{Octopus.Deployment.CreatedBy.Username}#{/unless} #{if Octopus.Deployment.CreatedBy.DisplayName}#{Octopus.Deployment.CreatedBy.DisplayName}#{/if} #{if Octopus.Deployment.CreatedBy.EmailAddress} (#{Octopus.Deployment.CreatedBy.EmailAddress})#{/if}

#{if Octopus.Release.Notes}

Release notes

#{Octopus.Release.Notes}

#{/if}

Please approve here.

(Andy) #3

I believe our hosted server was updated over the weekend and we are now seeing the same error when utilizing the SMTP email step. Is there any update to this, or any work around available?

#4

Hi @ranraq

Thanks for getting in touch! I’m very sorry to hear you’re getting bitten by this bug. The good news is it’s a known issue that we’ve patched in 2019.5.6, and you can reference the bug report at the following link.

@abayer we are in the process of rolling out the upgrad to our Octopus Cloud instances now, feel free to reach out to support@octopus.com and let us know your instance name and we can schedule the upgrade for you.

Regards,
Alex

(system) closed #5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.