in GCP Console Certificate Manager, what is the difference between “Certificates” and “Classic Certificates” what should I use?
I tried to use following to create via terraform with following it is adding to classic certificates
resource "google_compute_managed_ssl_certificate" "ssl_cert" {
name = var.name
managed {
domains = var.ssl_certificates
}
}
should I use different one?
The major difference between the classic certificate and certificate is that the classic certificates are provisioned directly through Cloud Load Balancing. These certificates are not managed by the Certificate Manager by default. However you can migrate these certificates to the Certificate manager. For further details, please verify this GCP documentation.
To create a certificate in Certificate manager, it is up to you on the type of certificate that you want to create. Please refer to the documentation on Migrate Cloud Load Balancing certificates to Certificate Manager. You can also Migrate third-party certificates to Certificate Manager explained in the same documentation.
Google recommends to use Google-managed SSL certificates as they are certificates that Google Cloud obtains, manages, and renews automatically. However, it depends on your requirement to use google managed certificates or self managed certificates.
1