Signing a CSR using Private CA

0

I wants to use ACM Private CA to sign CSR's. In one workflow, I want to generate certificates from the CA to install on devices. In an alternate workflow, I want to generate a CSR on the device, sign it with the CA, and install the certificate back on the device.

I see references to "signing a CSR" in other posts, but I can't figure out how to do it.

AWS
已提问 4 年前2115 查看次数
1 回答
0
已接受的回答

Here is a quick link to the document. The command that you are looking for is "issue-certificate" https://docs.aws.amazon.com/cli/latest/reference/acm-pca/issue-certificate.html

issue-certificate
--certificate-authority-arn <value>
--csr <value>
--signing-algorithm <value>
[--template-arn <value>]
--validity <value>
[--idempotency-token <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]

The example of the command is:

aws acm-pca issue-certificate --certificate-authority-arn  “arn:aws:acm-pca:us-east-...” --csr file://csr_in_pem_format.csr --signing-algorithm SHA384WITHECDSA --template-arn arn:aws:acm-pca:::template/EndEntityCertificate/V1 --validity Value=9,Type="YEARS" --idempotency-token 1234

The token is used to ensure that multiple identical calls within short time period are ignored. Note : Validity needs to of a shorter value than the signing CA

AWS
Arthur
已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则