Closed ninadpage closed 6 years ago
@ninadpage I believe the issue is that you omitted this configuration parameter:
// (optional) The algorithm used to generate tectonic_ca_key.
// The default value is currently recommended.
// This field is mandatory if `tectonic_ca_cert` is set.
// tectonic_ca_key_alg = "RSA"
Without this, the terraform cannot generate new certificates based on your ca
@squat Thank you for catching that!
Unfortunately, it does not fix the issue: terraform apply
still fails with similar error.
Don't use the path to the file, try using the actual content of the CA key and CA cert, one line each:
tectonic_ca_cert = "---BEGIN..."
tectonic_ca_key = "---BEGIN..."
@hhoover yes, you are completely right. @ninadpage please try changing the certs/keys from file paths to the actual PEM content. Closing this for now. Please re-open if this you continue to run into this issue.
I have created a self-signed certificate as root CA using
openssl req -newkey rsa:2048 -nodes -keyout ca.key -x509 -days 365 -out ca.crt
. The verification of both the key (usingopenssl rsa -in ca.key -check
) and certificate (usingopenssl x509 -text -noout -in ca.crt
) succeeds.I'm trying to deploy a new Kubernetes cluster using this, with above key/cert as CA. I'm using
tectonic_1.7.9-tectonic.1
which comes withTerraform v0.10.7
. Myterraform.tfvars
is as follows:But the
terraform apply
command fails with following errors:I also tried with
-refresh=false
without any effect (link).EDIT: Updated config to add
tectonic_ca_key_alg = "RSA"
parameter which does not fix the issue.