Robin Thoni 1a6c986b58 added TLS support for agents; added example CA and cert | il y a 6 ans | |
---|---|---|
frontend | il y a 6 ans | |
postgresql | il y a 6 ans | |
zabbix | il y a 6 ans | |
.gitignore | il y a 7 ans | |
README.md | il y a 6 ans | |
docker-compose.yml | il y a 7 ans | |
env | il y a 7 ans | |
update_vars.sh | il y a 7 ans |
Admin:zabbix
openssl genrsa -passout env:CA_PASSWD -aes256 -out zabbix-ca.key 4096
openssl req -x509 -new -key zabbix-ca.key -sha256 -days 36500 -out zabbix-ca.crt -passin env:CA_PASSWD -subj “/CN=zabbix-server”
HOST=zabbix-host.domain.tld
openssl req -new -newkey rsa:4096 -nodes -keyout “${HOST}.key” -out “${HOST}.csr” -subj “/CN=${HOST}”
openssl x509 -req -CA zabbix-ca.crt -CAkey zabbix-ca.key -CAcreateserial -days 36500 -sha256 -passin env:CA_PASSWD -in “${HOST}.csr” -out “${HOST}.crt”
rm “${HOST}.csr”