Venafi / vcert

Go client SDK and command line utility designed to simplify integrations by automating key generation and certificate enrollment using Venafi machine identity services.
https://support.venafi.com/hc/en-us/articles/217991528
Apache License 2.0
88 stars 64 forks source link

Search certificates using certificates attributes and statuses #427

Open brental opened 7 months ago

brental commented 7 months ago

BUSINESS PROBLEM In order to avoid creating a duplicate certificate we would like to search for certificates based on certificate attributes and statuses. Based on the response we could then either proceed with creating a certificate or abort the creation.

PROPOSED SOLUTION Expose the ability to search for certificates using the vcert CLI in the same way as the web SDK GET Certificates endpoint: https://docs.venafi.com/Docs/current/TopNav/Content/SDK/WebSDK/r-SDK-GET-Certificates.php?tocpath=REST%20APIs%7CWeb%20SDK%20REST%7CCertificate%20endpoints%20for%20TLS%7CCertificates%20API%7C_____5

It seems like the functionality may already be available in vcert to some extent as there are some functions for searching certificates using a search request. However, these functions are not exposed as commands. So, it would be good if these functions could be exposed as commands OR implement the appropriate command and functions if those functions do not match the above endpoint's functionality.

Suggested name for the command would be: searchcertificates

CURRENT ALTERNATIVES Use the following web SDK endpoint: https://docs.venafi.com/Docs/current/TopNav/Content/SDK/WebSDK/r-SDK-GET-Certificates.php?tocpath=REST%20APIs%7CWeb%20SDK%20REST%7CCertificate%20endpoints%20for%20TLS%7CCertificates%20API%7C_____5

VENAFI EXPERIENCE I have been using Venafi products for 6 months.