在异类环境中保护文件传输
2009-07-12 08:34:57 来源:WEB开发网使用安全 FTP 传输数据
下面分别讨论这些步骤。
创建证书
如果还没有商业证书的话,就需要创建在 FTP 服务器和客户机之间进行通信所需的证书。
首先,如果要在 Windows 机器上创建证书,就需要在这台机器上安装 OpenSSL。否则,只需把商业证书导入这台机器。
创建一个根(root)级私有密钥和根级证书请求(包含公共密钥)。
清单 1. 根级证书请求
c:\>cd c:\openssl\bin\
openssl req -newkey rsa:2048 -sha1 -keyout root_key.pem -out root_req.pem
Generating a 2048 bit RSA private key
...................................+++
....+++
writing new private key to 'root_key.pem'
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:TX
Locality Name (eg, city) []:Austin
Organization Name (eg, company) [Internet Widgits Pty Ltd]:IBM
Organizational Unit Name (eg, section) []:AIX
Common Name (eg, YOUR name) []:windows
Email Address []:windows@austin.ibm.com
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:1234
An optional company name []:ibm
更多精彩
赞助商链接