Crear un directorio para guardar los certificados
/etc/apache2/ssl
Dentro poner los certificados
cert.crt
private.key
bundle.crt
Configurar el virtualhost de apache para usar los certificados
/etc/apach2/sites-enable/magento.conf
#se agrego el virtualhost del puerto 80 para Redirect to 443
<VirtualHost *:80>
ServerName magento.loc
Redirect permanent / https://magento.loc/
</VirtualHost>
#aqui se cambio el puerto 80 por el 443
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName magento.loc
DocumentRoot /var/www/html/magento/pub/
#agregado este bloque para cargar los certificados
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/cert.crt
SSLCertificateKeyFile /etc/apache2/ssl/private.key
SSLCertificateChainFile /etc/apache2/ssl/bundle.crt
<Directory /var/www/html/magento/pub/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>