了解为什么通常在输入网址后,为什么会自动添加前缀 https:// ? https 又是什么?
配置 SSL 加密证书
-
服务器配置
[root@httpserver ~] # yum install mod_ssl -y # 安装证书生成软件 [root@httpserver ~] # firewall-cmd --permanent --add-servie=https [root@httpserver ~] # firewall-cmd --reload [root@httpserver ~] # systemctl restart httpd
-
客户端测试
使用浏览器访问https://172.25.254.101 查看证书情况
配置自己的证书文件
[root@httpserver ~] # yum install crypto-utils -y # 此软件用来生成自己的key
[root@httpserver ~] # genkey luke.com # 指定证书名称luke.com