<commit_before>---
layout: "google"
page_title: "Google: google_compute_ssl_certificate"
sidebar_current: "docs-google-datasource-compute-ssl-certificate"
description: |-
  Get info about a Google Compute SSL Certificate.
---

# google\_compute\_ssl\_certificate

Get info about a Google Compute SSL Certificate from its name.

## Example Usage

```tf
data "google_compute_ssl_certificate" "my_cert" {
  name       = "my-cert"
  location   = "us-east1-a"
}

output "certificate" {
  value = "${data.google_compute_ssl_certificate.my_cert.certificate}"
}

output "certificate_id" {
  value = "${data.google_compute_ssl_certificate.my_cert.certificate_id}"
}

output "self_link" {<commit_msg>Remove bad option from example for compute_ssl_certificate docs (#4185)<commit_after>---
layout: "google"
page_title: "Google: google_compute_ssl_certificate"
sidebar_current: "docs-google-datasource-compute-ssl-certificate"
description: |-
  Get info about a Google Compute SSL Certificate.
---

# google\_compute\_ssl\_certificate

Get info about a Google Compute SSL Certificate from its name.

## Example Usage

```tf
data "google_compute_ssl_certificate" "my_cert" {
  name       = "my-cert"
}

output "certificate" {
  value = "${data.google_compute_ssl_certificate.my_cert.certificate}"
}

output "certificate_id" {
  value = "${data.google_compute_ssl_certificate.my_cert.certificate_id}"
}

output "self_link" {
{'fraction_non_alphanumeric': 0.1148936170212766, 'fraction_numerical': 0.0035460992907801418, 'mean_word_length': 5.18859649122807, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5628243', 'n_tokens_mistral': 474, 'n_tokens_neox': 454, 'n_words': 104}