apache配置https证书问题记录

1 ssl模块

# ./apachectl stop
httpd: Syntax error on line 135 of /usr/local/httpd/conf/httpd.conf: Cannot load modules/mod_ssl.so into server: libssl.so.1.1: cannot open shared object file: No such file or directory

没有相关ssl模块;
解决方法:

# wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb
# dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb 
Selecting previously unselected package libssl1.1:amd64.
(Reading database ... 81688 files and directories currently installed.)
Preparing to unpack libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1-1ubuntu2.1~18.04.23) ...
Setting up libssl1.1:amd64 (1.1.1-1ubuntu2.1~18.04.23) ...
Processing triggers for libc-bin (2.35-0ubuntu3.3) ..

2 导入模块

# ./apachectl stop
AH00526: Syntax error on line 92 of /usr/local/httpd/conf/extra/httpd-ssl.conf:
SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).

修改配置文件:httpd.conf

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so

3
相关配置参考:
Apache安装部署https SSL证书
解决"SSLSessionCache: ‘shmcb’ session cache not supported"问题
http://security.ubuntu.com/ubuntu/pool/main/o/openssl/
https://blog.csdn.net/Asgard_Hu/article/details/127532328文章来源地址https://uudwc.com/A/mN3Aa

原文地址:https://blog.csdn.net/zhangh571354026/article/details/133222481

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请联系站长进行投诉反馈,一经查实,立即删除!

上一篇 2023年09月24日 05:25
下一篇 2023年09月24日 05:25