Ad Widget

Collapse

how to use ssl certificate in zabbix apache container

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ehsan
    Junior Member
    • Jan 2025
    • 1

    #1

    how to use ssl certificate in zabbix apache container


    I am running the Zabbix frontend using the official Docker container image (zabbix/zabbix-web-apache-mysql) and I would like to configure it to use a self-signed SSL certificate for secure HTTPS access. i have ELB on aws and i want to encrypt the traffic from ELB to container and terminates it in Zabbix frontend. I am using the ECS service for the containers and using EC2 instance for these containers.

    I have already created the self-signed certificate and key files (example.crt and example.key) on my host EC2 system, but I am unsure how to correctly configure Apache inside the container to use them.
    what i have tried already?
    1: Mount the volume for the certificates from ec2 instance to container of zabbix
    2: change the Zabbix configurations files like below changes in configurations files,
    <VirtualHost _default_:443>
    ServerName your-zabbix-hostname.example.com

    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/zabbix.crt
    SSLCertificateKeyFile /etc/ssl/private/zabbix.key


    i am trying to encrypt the traffic from ELB AWS to Zabbix frontend


Working...