Hello,
I’ve successfully provisioned a certificate using terraform, with the following setup:
provider "acme" {
server_url = "https://acme-staging-v02.api.letsencrypt.org/directory"
}
resource "tls_private_key" "private_key" {
algorithm = "RSA"
}
resource "acme_registration" "reg" {
account_key_pem = "${tls_private_key.private_key.private_key_pem}"
email_address = "${var.support_email}"
}
resource "acme_certificate" "certificate" {
account_key_pem = "${acme_registration.reg.account_key_pem}"
common_name = "${var.domain}"
subject_alternative_names = ["www.${var.domain}"]
dns_challenge {
provider = "cloudflare"
config = {
CLOUDFLARE_EMAIL = "${var.cloudflare_email}"
CLOUDFLARE_API_KEY = "${var.cloudflare_token}"
}
}
}
I’m now unable to regenerate it (using same parameters and existing state) to no avail. I get Error 403 - urn:ietf:params:acme:error:unauthorized - Account is not valid, has status “deactivated”
Some help? Can I somehow reset my account/certificates and start all over?