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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值