1. 程式人生 > 其它 >aws免費域名證書生成,證書匯出

aws免費域名證書生成,證書匯出

aws 命令: https://awscli.amazonaws.com/v2/documentation/api/latest/index.html

aws windwos下載地址:https://awscli.amazonaws.com/AWSCLIV2.msi

CA 證書申請: AWS Certificate Manager

設定AWS環境:入門指南

https://aws.amazon.com/cn/getting-started/guides/setup-environment/

# 安裝aws完成後執行 aws configure
aws configure
# region name 配置為證書下證書狀態下ARN的值
# IAM -> 訪問管理 -> 賬戶設定 下列出所有的終端節點資訊
# 例如:arn:aws:acm:ca-central-1:593258984783:certificate/be09a8a9-9e5b-4f09-8d2e-5b4535c79ef6 取值為 ca-central-1
# 節點資訊不對有可能查詢不到證書資訊
# https://ca-central-1.console.aws.amazon.com/acm/home?region=ca-central-1#/certificates/list

# 下載證書
aws acm  get-certificate --certificate-arn  arn:aws:acm:ca-central-1:593258984783:certificate/be09a8a9-9e5b-4f09-8d2e-5b4535c79ef6

# when calling the GetCertificate operation: Could not find Certificate for Account 593258984783
# 出現此問題原因為 Default region name 配置資訊不正確

新增使用者登入地址: https://deirzhang.signin.aws.amazon.com/console

#derizhang 授權資訊 {user}/.aws/credentials
[default]
aws_access_key_id = AKIAYUIH5WVH553CT3PN
aws_secret_access_key = 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