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