所以我一直在努力工作几个小时,没有运气。我已经配置了OpenSSL,创建了私有私钥,创建了一个csr,将csr提交给了证书颁发机构,收到了批准的证书,现在当我尝试上传它时,我没有运气。我正在使用这种格式:
aws iam upload-server-certificate --server-certificate-name certificate_object_name --certificate- body file://public_key_certificate_file --private-key file://privatekey.pem
当我尝试上传文件时://我得到以下内容:
aws iam upload-server-certificate --server-certificate-name steptproductions --certificate-body file://Users/markhoyt/Downloads/www_steptproductions_com/www_steptproductions_com.crt.pem --private-key file://Users/markhoyt/private-key.pem
Error parsing parameter '--certificate-body': file does not exist: Users/markhoyt/Downloads/www_steptproductions_com/www_steptproductions_com.crt.pem
当我尝试使用文件上传时:/我得到以下内容:
aws iam upload-server-certificate --server-certificate-name car.pem --certificate-body file:/Users/markhoyt/Downloads/www_steptproductions_com/www_steptproductions_com.crt.pem --private-key file:/Users/markhoyt/private-key.pem
A client error (MalformedCertificate) occurred when calling the UploadServerCertificate operation: Unable to parse certificate. Please ensure the certificate is in PEM format.
我创建了一个实例,并使用以下命令登录到Amazon Linux AMI:
ssh -i steptproductions.pem ec2-user@ec2-54-183-166-45.us-west-1.compute.amazonaws.com
我似乎无法将文件上传到服务器。有人可以帮忙吗?