diff --git a/octopusdeploy/resource_certificate.go b/octopusdeploy/resource_certificate.go index cb4ba7aad..eda09a8b9 100644 --- a/octopusdeploy/resource_certificate.go +++ b/octopusdeploy/resource_certificate.go @@ -173,7 +173,7 @@ func resourceCertificateUpdate(d *schema.ResourceData, m interface{}) error { client := m.(*octopusdeploy.Client) - updatedCertificate, err := client.Certificate.Update(certificate) + updatedCertificate, err := client.Certificate.Replace(certificate) if err != nil { return fmt.Errorf("error updating certificate id %s: %s", d.Id(), err.Error())