Menu
AWS Certificate Manager
User Guide (Version 1.0)

Importing Certificates (ACM API)

To use the ACM API to import a certificate, send an ImportCertificate request. The following example shows how to do this with the AWS Command Line Interface (AWS CLI). The example assumes the following:

  • The PEM-encoded certificate is stored in a file named Certificate.pem.

  • The PEM-encoded certificate chain is stored in a file named CertificateChain.pem.

  • The PEM-encoded, unencrypted private key is stored in a file named PrivateKey.pem.

To use the following example command, replace these file names with your own and type the command on one continuous line. The following example includes line breaks and extra spaces to make it easier to read.

Copy
$ aws acm import-certificate --certificate file://Certificate.pem --certificate-chain file://CertificateChain.pem --private-key file://PrivateKey.pem

When the preceding command is successful, it returns the Amazon Resource Name (ARN) of the imported certificate.