riboseinc / digicert

Ruby bindings for the Digicert Services API
https://www.digicert.com/services/v2/documentation
MIT License
8 stars 10 forks source link

Return textual certificate content after certificate download #101

Closed ronaldtse closed 7 years ago

ronaldtse commented 7 years ago

Hi @abunashir ,

We want to directly access the textual content from a certificate after download.

Here's an example:

duplicate_request = order.duplicate(csr: csr)

# this method
downloaded_certs = duplicate_request.download_certificate(format: :text)
root_cert = downloaded_certs[:root]
intermediate_cert = downloaded_certs[:intermediate]
cert = downloaded_certs[:cert]

Could we implement this method to make it easier to utilize the downloaded content? Thanks!

abunashir commented 7 years ago

Resolved in PR #108 !