terraform-provider-okta icon indicating copy to clipboard operation
terraform-provider-okta copied to clipboard

okta_domain_certificate doesn't update the certificate

Open techish-io opened this issue 1 year ago • 1 comments

I'm configuring custom domain cert using okta_domain_certificate

When I update cert and re run terraform - it fails for the first time with following error. Re run doesn't fail but it doesn't update the certificate in okta either

│ Error: failed to update domain's certificate: the API returned an error: Api validation failed: certificate. Causes: errorSummary: certificate: Invalid certificate format. The format must be a valid PEM encoded RSA certificate, errorSummary: privateKey: Invalid private key format. The format must be a valid PEM encoded RSA private key │ │ with okta_domain_certificate.custom_domain_certificate, │ on custom_domain.tf line 12, in resource "okta_domain_certificate" "custom_domain_certificate": │ 12: resource "okta_domain_certificate" "custom_domain_certificate" {

techish-io avatar Nov 22 '23 02:11 techish-io