Skip to content

Instantly share code, notes, and snippets.

View DevOpsFu's full-sized avatar

Chris McKeown DevOpsFu

View GitHub Profile
@DevOpsFu
DevOpsFu / main.tf
Created February 26, 2020 17:59
Terraform and Linkerd
resource "tls_private_key" "trustanchor_key" {
algorithm = "ECDSA"
ecdsa_curve = "P256"
}
resource "tls_self_signed_cert" "trustanchor_cert" {
key_algorithm = tls_private_key.trustanchor_key.algorithm
private_key_pem = tls_private_key.trustanchor_key.private_key_pem
validity_period_hours = 87600
is_ca_certificate = true
openssl req -x509 -new -key octopus.key -days 3650 -subj "/C=GB/ST=YourState/L=YourCity/O=Your Company/OU=Department/CN=${fqdn}" |
openssl pkcs12 -export -inkey octopus.key -passout pass: |
openssl base64
2017/07/12 10:10:08 [WARNING] missing x-terraform-protocol-version from: https://releases.hashicorp.com/terraform-provider-null/0.1.0/terraform-provider-null_0.1.0_linux_amd64.zip
2017/07/12 10:10:08 [INFO] incompatible ProtocolVersion for null version 0.1.0
2017/07/12 10:10:08 [DEBUG] fetching provider info for external version 0.1.0
2017/07/12 10:10:09 [WARNING] missing x-terraform-protocol-version from: https://releases.hashicorp.com/terraform-provider-external/0.1.0/terraform-provider-external_0.1.0_linux_amd64.zip
2017/07/12 10:10:09 [INFO] incompatible ProtocolVersion for external version 0.1.0
2017/07/12 10:10:09 [DEBUG] fetching provider info for azurerm version 0.1.2
2017/07/12 10:10:09 [WARNING] missing x-terraform-protocol-version from: https://releases.hashicorp.com/terraform-provider-azurerm/0.1.2/terraform-provider-azurerm_0.1.2_linux_amd64.zip
2017/07/12 10:10:09 [INFO] incompatible ProtocolVersion for azurerm version 0.1.2
2017/07/12 10:10:09 [DEBUG] fetching provider info for consul version 0