terraform-provider-okta
terraform-provider-okta copied to clipboard
okta_domain_certificate doesn't update the certificate
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" {