mkdir /tmp/ssl.crt
openssl genrsa -des3 -passout pass:infowarelab -out /tmp/ssl.crt/server.key.org 1024
openssl req -new -passin pass:infowarelab -passout pass:infowarelab -key /tmp/ssl.crt/server.key.org -out /tmp/ssl.crt/server.csr -days 3650
openssl req -x509 -passin pass:infowarelab -passout pass:infowarelab -key /tmp/ssl.crt/server.key.org -in /tmp/ssl.crt/server.csr -out /tmp/ssl.crt/server.crt -days 3650
openssl rsa -passin pass:infowarelab -in /tmp/ssl.crt/server.key.org -out /tmp/ssl.crt/server.key
mv /tmp/ssl.crt/server.key /infowarelab/apache2/conf/ssl/server.key
chmod 400 /infowarelab/apache2/conf/ssl/server.key
mv /tmp/ssl.crt/server.crt /infowarelab/apache2/conf/ssl/server.crt
chmod 400 /infowarelab/apache2/conf/ssl/server.crt
阅读(887) | 评论(0) | 转发(0) |