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

Proposal: New data source for TLS cert #4

Closed
hashibot opened this issue Jun 13, 2017 · 3 comments · Fixed by #62
Closed

Proposal: New data source for TLS cert #4

hashibot opened this issue Jun 13, 2017 · 3 comments · Fixed by #62

Comments

@hashibot
Copy link

This issue was originally opened by @martinssipenko as hashicorp/terraform#14856. It was migrated here as part of the provider split. The original body of the issue is below.


I would like to propose a new data source under TLS provider named tls_cert (or something like that).

Arguments:

  • You would be able to either supply a path to TLS certificate as argument, or supply a PEM, which could be read by ${file('path/to/cert.pem')}.

Attributes:

  • signature_algo
  • public_key_algo
  • serial_number (represented as integer)
  • serial_number_hex (represented as hex delimited with :)
  • is_ca
  • version
  • issuer
  • subject
  • not_before
  • not_after

Possibly even more.

Please share your view on introducing such provider.

@apparentlymart
Copy link
Contributor

Hi @martinssipenko! Thanks for this suggestion and sorry for the long silence here.

Supporting such a data source seems like a fine idea, and I think it could share a lot of the existing certificate resource implementation to achieve its goal.

It's unlikely that the Terraform team at HashiCorp will be able to work on this in the near future due to being busy with other work, but we'd be happy to review a pull request for this if someone else has the time and motivation to work on it.

@FrenchBen
Copy link

Since I did something similar for the Private key -> Public key, I'll see if I can find time to work on datasource for this.

wjam added a commit to wjam/terraform-provider-tls that referenced this issue Nov 8, 2019
@kmoe kmoe self-assigned this Jun 26, 2020
@kmoe kmoe closed this as completed in #62 Jul 24, 2020
iwarapter added a commit to iwarapter/terraform-provider-tls that referenced this issue Apr 12, 2022
iwarapter added a commit to iwarapter/terraform-provider-tls that referenced this issue Apr 25, 2022
iwarapter added a commit to iwarapter/terraform-provider-tls that referenced this issue Apr 26, 2022
iwarapter added a commit to iwarapter/terraform-provider-tls that referenced this issue Apr 26, 2022
detro pushed a commit to iwarapter/terraform-provider-tls that referenced this issue May 5, 2022
detro pushed a commit that referenced this issue May 5, 2022
* Closes #139 support parsing certificate content #4

* Using hash of certificates as ID for 'tls_certificate' data source

* Update CHANGELOG.md

* Adding BUGFIX + NOTES to the CHANGELOG as we are now fixing issue #79.

Co-authored-by: Ivan De Marino <ivan.demarino@hashicorp.com>
jackivanov pushed a commit to jackivanov/terraform-provider-tls that referenced this issue Aug 4, 2022
* Closes hashicorp#139 support parsing certificate content hashicorp#4

* Using hash of certificates as ID for 'tls_certificate' data source

* Update CHANGELOG.md

* Adding BUGFIX + NOTES to the CHANGELOG as we are now fixing issue hashicorp#79.

Co-authored-by: Ivan De Marino <ivan.demarino@hashicorp.com>
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants