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:
- The server is using a self-signed certificate which cannot be verified.
- The local system is missing a Root or Intermediate certificate needed to verify the server’s certificate.
- 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}