博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Zabbix-Web启用安全链接ssl
阅读量:7257 次
发布时间:2019-06-29

本文共 1254 字,大约阅读时间需要 4 分钟。

Zabbix-Web启用安全链接ssl

前端设置

  1. 安装mod_ssl sudo yum install mod_ssl -y
  2. 创建ssl-keys
# mkdir for private keysudo mkdir -p /etc/httpd/ssl/private# change mod 700sudo chmod 700 /etc/httpd/ssl/private# create ssl keyopenssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/httpd/ssl/private/zabbix-web.key -out /etc/httpd/ssl/zabbix-web.crt复制代码
  1. 配置Apache ssl
cd /etc/httpd/conf.d/ && sudo cp ssl.conf ssl.conf.oldsudo vi ssl.conf# change SSLCertificateFile /etc/httpd/ssl/zabbix-web.crtSSLCertificateKeyFile /etc/httpd/ssl/private/zabbix-web.key# restart apache servicesudo systemctl restart httpd复制代码

启用ssl

cd /etc/httpd/conf && sudo cp httpd.conf httpd.conf.old# add replace server_address use your server_name
ServerName server_address Redirect permanent / http://server_address
# restart apache servicesudo systemctl restart httpd复制代码

禁用显示Web服务器信息

sudo vi /etc/httpd/conf/httpd.conf# addServerSignature OffServerTokens Prod复制代码

添加防火墙策略

如果启用了防火墙,还需要同时开放80和443端口号 firewall-cmd --zone=public --add-rich-rule='rule family=ipv4 source address=192.168.0.1/24 port port=443 protocol=tcp accept' --permanent

使用https打开web

我们使用的是自己创建的密钥和证书,未经过证书机构,打开的时候会提示Your connection is not private,点击继续访问即可

转载于:https://juejin.im/post/5cd7e2d1e51d453b560f2d80

你可能感兴趣的文章
C语言冒泡排序
查看>>
关于两个时间(00:00:00)相加的实现方法
查看>>
led子系统【转】
查看>>
压缩感知——SP(subspace pursuit)重构算法前言翻译
查看>>
less11 属性合并
查看>>
手写快排模版
查看>>
Linux 之 NTP 服务 服务器
查看>>
Codeforces 235E. Number Challenge DP
查看>>
【转】如何在Windows+VS2005使用最新静态libcurl 7.35.0获取网页数据,支持HTTPS
查看>>
matlab如何保存figure中去掉白边的图片
查看>>
\n 与 \r
查看>>
What Is Mathematics?
查看>>
RedHat Enterprise Linux 6 配置Xmanager ,实现图形界面连接
查看>>
天朝git的使用
查看>>
一个RPC的demo (good)
查看>>
SqlServer当前月份时间
查看>>
linux开发常用命令
查看>>
李洪强iOS开发之OC语言description方法和sel
查看>>
调停者(Mediator)模式
查看>>
tr DEMO
查看>>