Skip to content

Update to TLS V4 Provider #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions certs-ca.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ resource "tls_private_key" "ca" {
}

resource "tls_self_signed_cert" "ca" {
key_algorithm = "RSA"
private_key_pem = tls_private_key.ca.private_key_pem

subject {
common_name = "${var.identifier}.ca.vpn"
organization = "Prodigy Broker"
organization = "Developer VPN"
}

validity_period_hours = 24 * 365 * 1
Expand Down
2 changes: 0 additions & 2 deletions certs-client.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ resource "tls_private_key" "client" {
}

resource "tls_cert_request" "client" {
key_algorithm = "RSA"
private_key_pem = tls_private_key.client.private_key_pem

subject {
Expand All @@ -15,7 +14,6 @@ resource "tls_cert_request" "client" {

resource "tls_locally_signed_cert" "client" {
cert_request_pem = tls_cert_request.client.cert_request_pem
ca_key_algorithm = "RSA"
ca_private_key_pem = tls_private_key.ca.private_key_pem
ca_cert_pem = tls_self_signed_cert.ca.cert_pem

Expand Down
2 changes: 0 additions & 2 deletions certs-server.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ resource "tls_private_key" "server" {
}

resource "tls_cert_request" "server" {
key_algorithm = "RSA"
private_key_pem = tls_private_key.server.private_key_pem

subject {
Expand All @@ -15,7 +14,6 @@ resource "tls_cert_request" "server" {

resource "tls_locally_signed_cert" "server" {
cert_request_pem = tls_cert_request.server.cert_request_pem
ca_key_algorithm = "RSA"
ca_private_key_pem = tls_private_key.ca.private_key_pem
ca_cert_pem = tls_self_signed_cert.ca.cert_pem

Expand Down