docker icon indicating copy to clipboard operation
docker copied to clipboard

(Question) Configuring HTTPS with custom SSL certificate

Open dennisdarwis opened this issue 4 years ago • 1 comments

Hi,

I am planning to configure Matomo to be HTTPS with custom SSL certificate. It seems on the docker image, there is a apache conf file to configure the SSL certificate file and key.

My current approach is to edit the file on directory: /etc/apache2/sites-available/default-ssl.conf by configuring this line of code.

<IfModule mod_ssl.c>
	<VirtualHost _default_:443>
		...

		#   A self-signed (snakeoil) certificate can be created by installing
		#   the ssl-cert package. See
		#   /usr/share/doc/apache2/README.Debian.gz for more info.
		#   If both key and certificate are stored in the same file, only the
		#   SSLCertificateFile directive is needed.
		SSLCertificateFile	/etc/ssl/certs/custom-cert.pem # <-- custom SSL certificate here
		SSLCertificateKeyFile /etc/ssl/private/custom-cert.key # <-- custom SSL certificate key here

		...
	</VirtualHost>
</IfModule>
...

Question I am wondering if there is a more ideal approach to configure custom SSL Certificate for enabling HTTPS with this Official Matomo docker image?

Will try this approach first and share the outcome.

Thank you very much.

dennisdarwis avatar Oct 21 '20 03:10 dennisdarwis

Hi, what are your results, what configuration are you using?

evsrt avatar Jan 14 '21 10:01 evsrt