我找不到任何有关 Heroku 自动证书管理的文档。terraform 文档heroku_cert
仅指手动生成的证书:
# Create a new Heroku app
resource "heroku_app" "default" {
name = "test-app"
}
# Add-on SSL to application
resource "heroku_addon" "ssl" {
app = "${heroku_app.default.name}"
plan = "ssl"
}
# Establish certificate for a given application
resource "heroku_cert" "ssl_certificate" {
app = "${heroku_app.default.name}"
certificate_chain = "${file("server.crt")}"
private_key = "${file("server.key")}"
depends_on = "heroku_addon.ssl"
}
certificate_chain
并且private_key
是必需的,我不知道我应该从哪里得到这些。