中国惠普网上客户支持中心: 显示热门文件

来源:百度文库 编辑:神马文学网 时间:2024/04/30 15:48:39
如何在没有 pass phrase 的情况下启动 Apache SSL Web Server
问题描述
启动 Apache SSL Web Server 时,使用什么步骤可以消除 "Enter pass phrase:" 对话框?配置信息
Apache Web Server (Strong) version 1.3.12 for HP-UX解决方法
出于安全考虑,/opt/apache/ssl.key/ 中的 RSA 私有密钥使用 Privacy-Enhanced Mail (PEM) 加密格式存储。启动 SSL 服务器时,必须使用 PEM pass phrase 才能读取和分析私有密钥文件。
下面的过程会从私有密钥文件中删除 PEM 加密:
安全警告: 任何人只要获取了您的未加密私有密钥,就能够在 Internet 上冒充您。1. 创建原始加密私有密钥文件的备份副本: cp /opt/apache/conf/ssl.key/server_name.key /opt/apache/conf/ssl.key/server_name.key.orig2. 从私有密钥文件删除加密: /opt/apache/ssl/bin/openssl rsa -in /opt/apache/conf/ssl.key/server_name.key.orig-out /opt/apache/conf/ssl.key/server_name.key3. 为了有助于保护未加密的私有密钥文件,使其只能由 root 用户读取:
chmod 400 /opt/apache/conf/ssl.key/server_name.key 4. 测试、停止然后再重新启动 SSL web 服务器。 # apachectl stopapachectl stop: httpd stopped# apachectl startsslapachectl startssl: httpd started注意: pass phrase 对话框应该不会再出现了。