如何将SSL证书从证书颁发机构复制到EC2? [英] How to copy SSL certificate from a certificate authority to EC2?
本文介绍了如何将SSL证书从证书颁发机构复制到EC2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试创建EC2上的开发端点服务器.我必须将SSL证书密钥存储区复制到Amazon EC2实例上
I am trying to create dev-endpoint server on EC2. I must copy my SSL certificate key store onto the Amazon EC2 instance
scp -i ec2-private-key keystore.jks ec2-user@dns-address-of-ec2-instance:~/keystore.jks
我遵循了 ssl证书教程. 我的scp线应该如何显示?
I followed ssl-certificate tutorial. How should my scp line look like?
scp -i server.key server.cert ec2-user@my....
推荐答案
您应使用以下命令:
scp -i $EC2_PEM $FILE $USERNAME@$REMOTE_HOST_ADDRESS:~/$PATH_TO_REMOTE_LOCATION
在此,以下是变量的用法:
In this the following is what to use for the variables:
-
$EC2_PEM
-用于连接到服务器的PEM(用于SSH的方式) -
$FILE
-文件名(私钥/公钥),提供当前主机上SSL的完整路径(绝对路径或相对路径) -
$USERNAME
-用于SSH到远程主机的用户名 -
REMOTE_HOST_ADDRESS
-您尝试将文件SCP锁定到的服务器的IP地址或域名 -
$PATH_TO_REMOTE_LOCATION
-文件将驻留在磁盘上的路径
$EC2_PEM
- The PEM for connecting to the server (what you would use to SSH)$FILE
- The name of the file (private key/public key), providing the full path (either absolute or relative) to the SSL on your current host machine$USERNAME
- The username used to SSH to the remote hostREMOTE_HOST_ADDRESS
- Either the IP address or domain name of the server you are attempting to SCP the file to$PATH_TO_REMOTE_LOCATION
- The path that the file will live on disk
您将需要分别为每个文件运行此程序.
You will need to run this for each file individually.
这篇关于如何将SSL证书从证书颁发机构复制到EC2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文