mm#
mm# cd /usr/myfolder/
mm# ls id_dsa
openssl-0.9.8i.tar.gz
vim-6.4.6_1.tbz id_dsa.pub
vmware-freebsd-tools.tar.gz
mm# tar zxvf openssl-0.9.8i.tar.gz
mm# cd openssl-0.9.8i.tar.gz
mm# make
mm# make install
mm#
mm#
安装完OpenSSL 0.9.8i.tar.gz之后,我们就利用它来产生一个证书,命令如下:
mm#
mm# pwd
/usr/myfolder
mm# openssl req -x509 -nodes -newkey rsa:1024 -keyout https.pem -out https.pem Generating a 1024 bit RSA private key .......................................++++++ .............++++++ writing new private key to 'https.pem' ----- 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]:ch State or Province Name (full name) [Some-State]:shandong Locality Name (eg, city) []:qingdao Organization Name (eg, company) [Internet Widgits Pty Ltd]:zenith Organizational Unit Name (eg, section) []:zenith Common Name (eg, YOUR name) []:mm Email Address []:mmzhang@zaixin.com
mm# ls https.pem
openssl-0.9.8i.tar.gz
vmware-freebsd-tools.tar.gz id_dsa
test id_dsa.pub
vim-6.4.6_1.tbz
mm#