Need help to import multiple certificates to ACM

0

I search for the solution of importing multiple certificates to ACM via cli. Any one could advised?

질문됨 일 년 전293회 조회
2개 답변
0

As per best of my understanding certificates must be imported one at a time with cli.

aws documentation syntax:- aws acm import-certificate --certificate fileb://Certificate.pem --certificate-chain fileb://CertificateChain.pem --private-key fileb://PrivateKey.pem --region us-east-2 --profile default

Also pointer to note Multiple certificates with the same domain name can be imported, but they must be imported one at a time.

AWS Doc

If my answer is satisfactory, kindly mark the Question is Answered to help others in this forum.

답변함 일 년 전
0

You can use the AWS Command Line Interface (AWS CLI) to import multiple certificates into AWS Certificate Manager (ACM) using the import-certificate command.

Here's an example of how to import multiple certificates from a directory called certs:

for file in certs/*.pem; do
  aws acm import-certificate --certificate file://$file --private-key file://$file.key --certificate-chain file://$file.chain
done

This will loop through all of the .pem files in the certs directory, import each certificate using the import-certificate command and specifying the path to the certificate, private key, and chain files using the file:// prefix.

Also, you will need to make sure that you have the correct permissions to import certificate into ACM.

전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인