Skip to content

Commit

Permalink
Merge pull request #6 from clouddrove/issue-rsa
Browse files Browse the repository at this point in the history
RSA deprecated error fix
  • Loading branch information
d4kverma authored Aug 18, 2022
2 parents 806e44a + d05d3bb commit 1a56599
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ resource "tls_private_key" "ca" {
}

resource "tls_self_signed_cert" "ca" {
count = var.enabled ? 1 : 0
key_algorithm = "RSA"
count = var.enabled ? 1 : 0
#key_algorithm = "RSA"
private_key_pem = join("", tls_private_key.ca.*.private_key_pem)

subject {
Expand Down Expand Up @@ -48,8 +48,8 @@ resource "tls_private_key" "root" {
}

resource "tls_cert_request" "root" {
count = var.enabled ? 1 : 0
key_algorithm = "RSA"
count = var.enabled ? 1 : 0
#key_algorithm = "RSA"
private_key_pem = join("", tls_private_key.root.*.private_key_pem)

subject {
Expand All @@ -61,9 +61,9 @@ resource "tls_cert_request" "root" {
}

resource "tls_locally_signed_cert" "root" {
count = var.enabled ? 1 : 0
cert_request_pem = join("", tls_cert_request.root.*.cert_request_pem)
ca_key_algorithm = "RSA"
count = var.enabled ? 1 : 0
cert_request_pem = join("", tls_cert_request.root.*.cert_request_pem)
#ca_key_algorithm = "RSA"
ca_private_key_pem = join("", tls_private_key.ca.*.private_key_pem)
ca_cert_pem = join("", tls_self_signed_cert.ca.*.cert_pem)

Expand All @@ -89,8 +89,8 @@ resource "tls_private_key" "server" {
}

resource "tls_cert_request" "server" {
count = var.enabled ? 1 : 0
key_algorithm = "RSA"
count = var.enabled ? 1 : 0
#key_algorithm = "RSA"
private_key_pem = join("", tls_private_key.server.*.private_key_pem)

subject {
Expand All @@ -102,9 +102,9 @@ resource "tls_cert_request" "server" {
}

resource "tls_locally_signed_cert" "server" {
count = var.enabled ? 1 : 0
cert_request_pem = join("", tls_cert_request.server.*.cert_request_pem)
ca_key_algorithm = "RSA"
count = var.enabled ? 1 : 0
cert_request_pem = join("", tls_cert_request.server.*.cert_request_pem)
#ca_key_algorithm = "RSA"
ca_private_key_pem = join("", tls_private_key.ca.*.private_key_pem)
ca_cert_pem = join("", tls_self_signed_cert.ca.*.cert_pem)

Expand Down

0 comments on commit 1a56599

Please sign in to comment.