Skip to content
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

Add example for adding crl file as part of config #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions snippets/terraform/certificates/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ resource "azurerm_nginx_configuration" "example" {
virtual_path = "/etc/nginx/site/api.conf"
}

config_file {
content = filebase64("${path.module}/rootca.crl")
virtual_path = "/etc/nginx/ssl/rootca.crl"
}

depends_on = [
azurerm_nginx_certificate.example
]
Expand Down
1 change: 1 addition & 0 deletions snippets/terraform/certificates/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ http {
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/test.crt;
ssl_certificate_key /etc/nginx/ssl/test.key;
ssl_crl /etc/nginx/ssl/rootca.crl;
location / {
return 200 'Hello World';
}
Expand Down
18 changes: 18 additions & 0 deletions snippets/terraform/certificates/rootca.crl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-----BEGIN X509 CRL-----
MIIC8DCB2QIBATANBgkqhkiG9w0BAQsFADBfMQswCQYDVQQGEwJVUzELMAkGA1UE
CAwCQ08xEDAOBgNVBAcMB0JvdWxkZXIxCzAJBgNVBAoMAkY1MQ4wDAYDVQQLDAVO
R0lOWDEUMBIGA1UEAwwLZXhhbXBsZS5jb20XDTIzMDgxMDIwMDc0MloXDTIzMDkw
OTIwMDc0MlowFDASAgEBFw0yMzA4MTAyMDA3MDlaoDAwLjAfBgNVHSMEGDAWgBQ2
ok8jradeT/E2BnwbwGVHWpAA6zALBgNVHRQEBAICEAAwDQYJKo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