步驟一
先將server.key備份起來,並且將RSA的私密金鑰密碼移除( Remove the encryption from the RSA private key)
$ cp server.key server.key.org
$ openssl rsa -in server.key.org -out server.key
步驟二修改server.key的讀取權限,只讓root讀( Make sure the server.key file is only readable by root:)
$ chmod 400 server.key
-------------------------------------------------------------------------
/etc/apache2/sslpwd
#!/bin/bash
echo "啟動密碼"
/etc/apache2/mods-available/ssl.conf
SSLPassPhraseDialog exec:/etc/apache2/sslpwd
沒有留言:
張貼留言