Robin Thoni 8dc80e867c fixed "unknown ca" error | 6 years ago | |
---|---|---|
frontend | 6 years ago | |
postgresql | 6 years ago | |
zabbix | 6 years ago | |
.gitignore | 7 years ago | |
README.md | 6 years ago | |
docker-compose.yml | 7 years ago | |
env | 7 years ago | |
update_vars.sh | 7 years ago |
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-ca”
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”