Skip to content

Provision certificates to Amazon Secrets Manager

Provision a certificate from Certificate Manager - SaaS to Amazon Secrets Manager. Certificate Manager - SaaS stores the certificate, its private key, and optionally its issuing chain in one secret, in the format you choose.

Before you begin

  • An Amazon Secrets Manager machine that you created and whose status is Verified.
  • The certificate to provision in the Certificate Manager - SaaS inventory, with its private key.
  • The System Administrator or PKI Administrator role, or the Resource Owner role and membership in the machine's owning team.
  • If you want to update an existing secret, the venafi:managed tag with the value true on that secret. Certificate Manager - SaaS adds this tag to every secret it creates.

To provision a certificate to Amazon Secrets Manager

  1. Sign in to Certificate Manager - SaaS.
  2. Click Installations > Machines.
  3. Click the more options button at the end of the machine's row, and then select Provision.
  4. In Search a certificate by name, expiration or fingerprint, enter part of the certificate's name, expiration date, or fingerprint, and then select the certificate from the results. Confirm that it's the right certificate by checking Subject DN, Validity, and Certificate SHA1 Fingerprint.

    The rest of the Provision a certificate dialog appears after you select a certificate.

  5. Under Certificate Information, in Secret Name, enter the name of the secret that stores the certificate. The name can be up to 256 characters. If the machine has a Secret Name Prefix, Certificate Manager - SaaS adds the prefix to the start of the name you enter.

    Important

    Certificate Manager - SaaS writes only to secrets it manages. If a secret with that name already exists and isn't tagged venafi:managed=true, provisioning fails and the existing secret isn't changed. Either choose a different name, or add the venafi:managed tag with the value true to the existing secret in Amazon Secrets Manager.

  6. For Secret Format, choose how Certificate Manager - SaaS stores the certificate in the secret:

    • JSON (certificate, private key, chain): a JSON object with the certificate and private key, plus the chain if you include it. This is the default.
    • Kubernetes (tls.crt, tls.key, ca.crt): a JSON object with the keys of a Kubernetes TLS secret. If you enable Include Certificate Chain, ca.crt holds the chain, and the chain is also added to the end of tls.crt. Otherwise, ca.crt is empty.
    • PKCS#12: a binary PKCS#12 file.

    Note

    The JSON and Kubernetes formats are stored as secret text. PKCS#12 is stored as binary secret data with an empty password, so protect it with Amazon Secrets Manager access controls and KMS encryption.

  7. (Optional) To store the issuing certificate chain with the certificate, enable Include Certificate Chain.

  8. (Optional) To save the installation without pushing the certificate now, disable Push certificate on save.
  9. Click Save. To save and then provision another certificate, click Save & New.

After you save, Certificate Manager - SaaS creates the secret, or writes a new version of it and makes that version current if the secret already exists. An installation appears on the machine's Installations tab. To provision on a schedule instead of right away, set up a machine provisioning schedule.

What to expect in Amazon Secrets Manager

  • Certificate Manager - SaaS tags every secret it creates or updates with venafi:managed=true, venafi:certificate-id (the certificate's serial number), and venafi:expiry (the expiration date).
  • When a certificate is renewed, Certificate Manager - SaaS writes a new version of the same secret and makes it the current version. The secret name doesn't change.
  • The stored certificate must be smaller than the Amazon Secrets Manager limit of 64 KB. If it's larger, provisioning fails before the secret is written. Disabling Include Certificate Chain reduces the size.