Retrieve either a certificate, the corresponding signing request, or the private key.
Each of these can be downloaded from the TinyCert dashboard, but may also be trieved using this API call. Certificates, requests as well as keys are always in PEM encoded form.
It is not possible to retrieve multiple values in a single request. If you need both the private key and the certificate chain, simply issue two API calls.
Numeric identifier of the certificate for which to retrieve the certificate, signing request, or private key.
Used to select which data to retrieve. Must be one of the following strings:
On success, this call returns an object with a single property, either pem or pkcs12. This contains the PEM encoded certificate, CSR or private key, or the PKCS#12 archive with the private key and certificate.
The PEM encoded certificate, key or signing request for the requested certificate. The string contents can be dumped directly to a .pem file.
The PKCS#12 encoded archive (certificate and private key) for the requested certificate. The string contents must be base64 decoded before being dumped to a .pfx file. You will need your passphrase in order to decrypt the contents.